feat: add Dockerfile and docker-compose.yml

This commit is contained in:
Julian Lobbes 2022-09-05 00:22:31 +02:00
commit d3e72c40f3
2 changed files with 24 additions and 0 deletions

11
context/Dockerfile Normal file
View file

@ -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

13
docker-compose.yml Normal file
View file

@ -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