From ce82498319f3a03fedad9fc64c3d3fe65258cdab Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Sun, 12 Apr 2020 14:58:26 +0200 Subject: [PATCH] Basic Docker (and compose) setup --- .gitignore | 3 +++ Dockerfile | 11 +++++++++++ docker-compose.yml.example | 11 +++++++++++ 3 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml.example 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