diff --git a/.gitignore b/.gitignore index 7bbc71c..088dca9 100644 --- a/.gitignore +++ b/.gitignore @@ -99,3 +99,6 @@ ENV/ # mypy .mypy_cache/ + +# Docker +docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9ad732 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.7-alpine + +COPY . /app/ + +WORKDIR /app/ + +RUN pip install -e . + +EXPOSE 5011 + +CMD snapcastrd --bind 0.0.0.0 --port=5011 --host "$SNAPCAST_HOST" diff --git a/docker-compose.yml.example b/docker-compose.yml.example new file mode 100644 index 0000000..3084eaa --- /dev/null +++ b/docker-compose.yml.example @@ -0,0 +1,11 @@ +version: '2' + +services: + snapcastr: + restart: unless-stopped + build: . + environment: + # change me! + - SNAPCAST_HOST=192.168.0.100 + ports: + - 5011:5011