Fix volume path in Dockerfile and update docker-compose.yml for environment variables and network configuration
This commit is contained in:
parent
f4c9d4b69a
commit
fa197cf096
2 changed files with 23 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ ENV PATH="/app/.venv/bin:$PATH"
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
||||||
CMD curl -f http://localhost:8000/ || exit 1
|
CMD curl -f http://localhost:8000/ || exit 1
|
||||||
|
|
||||||
VOLUME ["/home/root/.local/share/TTVDrops"]
|
VOLUME ["/root/.local/share/TTVDrops"]
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
ENTRYPOINT [ "/app/start.sh" ]
|
ENTRYPOINT [ "/app/start.sh" ]
|
||||||
CMD ["uv", "run", "gunicorn", "config.wsgi:application", "--workers", "27", "--bind", "0.0.0.0:8000"]
|
CMD ["uv", "run", "gunicorn", "config.wsgi:application", "--workers", "27", "--bind", "0.0.0.0:8000"]
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,28 @@
|
||||||
services:
|
services:
|
||||||
ttvdrops:
|
ttvdrops:
|
||||||
container_name: ttvdrops
|
container_name: ttvdrops
|
||||||
build: .
|
image: ghcr.io/thelovinator1/ttvdrops:latest
|
||||||
ports:
|
expose:
|
||||||
- "8000:8000"
|
- "8000"
|
||||||
env_file: .env
|
user: 1000:1000
|
||||||
environment:
|
environment:
|
||||||
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY?Please set DJANGO_SECRET_KEY in your environment}
|
- DEBUG=False
|
||||||
- DEBUG=1
|
- DJANGO_SECRET_KEY=
|
||||||
- EMAIL_HOST=${EMAIL_HOST:-smtp.example.com}
|
- TWITCH_CLIENT_ID=
|
||||||
- EMAIL_PORT=${EMAIL_PORT:-587}
|
- TWITCH_CLIENT_SECRET=
|
||||||
- EMAIL_HOST_USER=${EMAIL_HOST_USER:-}
|
- EMAIL_HOST=smtp.gmail.com
|
||||||
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD:-}
|
- EMAIL_PORT=587
|
||||||
|
- EMAIL_HOST_USER=
|
||||||
|
- EMAIL_HOST_PASSWORD=
|
||||||
|
- EMAIL_USE_TLS=True
|
||||||
|
- EMAIL_USE_SSL=False
|
||||||
volumes:
|
volumes:
|
||||||
# Data is stored in /home/root/.local/share/TTVDrops" inside the container
|
# Data is stored in /root/.local/share/TTVDrops" inside the container
|
||||||
- ./data:/home/root/.local/share/TTVDrops
|
- /mnt/Docker/Data/ttvdrops/data:/root/.local/share/TTVDrops
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue