Skip to content

Commit

Permalink
Another approach
Browse files Browse the repository at this point in the history
  • Loading branch information
JobDoesburg committed Sep 4, 2024
1 parent 1a72abf commit ffa8ee3
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ services:
image: ghcr.io/kioui/tosti:latest
restart: unless-stopped
networks:
- web
- db
web:
- aliases:
- yivi.tosti.science.ru.nl
db:
expose:
- "80"
depends_on:
Expand Down Expand Up @@ -65,9 +67,6 @@ services:
DEFAULT_FROM_EMAIL: "TOSTI <[email protected]>"
SERVER_EMAIL: "[email protected]"

extra_hosts:
- "yivi.tosti.science.ru.nl:172.23.0.4"

healthcheck:
test: ["CMD", "python", "manage.py", "check"]
interval: 10s
Expand All @@ -79,8 +78,10 @@ services:
entrypoint: ["/bin/sh", "/entrypoint_cron.sh"]
restart: unless-stopped
networks:
- web
- db
web:
- aliases:
- yivi.tosti.science.ru.nl
db:
depends_on:
- database
- yivi
Expand All @@ -95,9 +96,6 @@ services:
POSTGRES_PORT: 5432
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY}

extra_hosts:
- "yivi.tosti.science.ru.nl:172.23.0.4"

networks:
web:
external: true
Expand Down

0 comments on commit ffa8ee3

Please sign in to comment.