commit d3e72c40f36c65b6c44d49f9d0e4007c6b772cd5 Author: Julian Lobbes Date: Mon Sep 5 00:22:31 2022 +0200 feat: add `Dockerfile` and `docker-compose.yml` diff --git a/context/Dockerfile b/context/Dockerfile new file mode 100644 index 0000000..1e406b9 --- /dev/null +++ b/context/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1 + +# This Dockerfile builds a docker image for the beets music library manager. + +FROM archlinux:latest +RUN pacman-key --init +RUN pacman -Syu --noconfirm +RUN pacman -S --noconfirm beets python python-pyacoustid chromaprint ffmpeg imagemagick python-requests +ENV BEETSDIR=/config +RUN touch /var/log/beets.log +CMD tail -f /var/log/beets.log diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..10adf8e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3" + +services: + beets: + build: + context: ./context + container_name: beets + restart: "no" + volumes: + - /srv/beets/config:/config # Config directory + - /srv/beets/data:/data # Database directory + - /srv/beets/music:/music # Directory containing music organized by beets + - /srv/beets/import:/import # Place music you want to import here