feat: add Dockerfile
and docker-compose.yml
This commit is contained in:
commit
d3e72c40f3
2 changed files with 24 additions and 0 deletions
11
context/Dockerfile
Normal file
11
context/Dockerfile
Normal 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
13
docker-compose.yml
Normal 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
|
Loading…
Add table
Reference in a new issue