Move env setup to Dockerfile
This simplifies docker-compose.yml needed to run the application
MODIFY
Dockerfile
Dockerfile
@@ -8,6 +8,13 @@ RUN pip install --no-cache-dir pipenv
COPY Pipfile* ./
RUN pipenv install --system --deploy
+ENV \
+ PTS_CONFIG_DIR=/app/config \
+ PTS_CACHE_DIR=/app/config \
+ PTS_LOG_DIR=/app/config
+
+VOLUME /app/config
+
# Copy rest of the app
COPY . .
ARG APP_VERSION=$APP_VERSION

MODIFY
docker-compose.yml
docker-compose.yml
@@ -3,9 +3,5 @@ services:
image: ghcr.io/taxel/plextraktsync
volumes:
- ./config:/app/config
- environment:
- - PTS_CONFIG_DIR=/app/config
- - PTS_CACHE_DIR=/app/config
- - PTS_LOG_DIR=/app/config
# vim:ts=2:sw=2:et

Move env setup to Dockerfile

This simplifies docker-compose.yml needed to run the application