diff --git a/docker-compose.yml b/docker-compose.yml index d9e79ae8..265b0fb3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: @@ -65,9 +67,6 @@ services: DEFAULT_FROM_EMAIL: "TOSTI " SERVER_EMAIL: "www-tosti@science.ru.nl" - extra_hosts: - - "yivi.tosti.science.ru.nl:172.23.0.4" - healthcheck: test: ["CMD", "python", "manage.py", "check"] interval: 10s @@ -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 @@ -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