Update docker-compose.yml

This commit is contained in:
Stavros Iliopoulos 2023-08-13 20:31:35 +03:00 committed by GitHub
parent 98671817ee
commit ea963e23ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,13 +11,14 @@ services:
environment:
- SECRET_KEY=${TANDOOR_SECRET_KEY}
- DB_ENGINE=django.db.backends.postgresql
- POSTGRES_HOST=tandoor_db
- POSTGRES_HOST=tandoor-db
- POSTGRES_PORT=5432
- POSTGRES_USER=djangodb
- POSTGRES_USER=tandoor
- POSTGRES_PASSWORD=${TANDOOR_POSTGRESS_PASSWORD}
- POSTGRES_DB=djangodb
- POSTGRES_DB=tandoordb
networks:
- tipi_main_network
restart: unless-stopped
labels:
# Main
traefik.enable: true
@ -44,17 +45,18 @@ services:
traefik.http.routers.tandoor-local.service: tandoor
traefik.http.routers.tandoor-local.tls: true
depends_on:
- tandoor_db
- tandoor-db
tandoor_db:
tandoor-db:
image: postgres:15-alpine
container_name: tandoor_db
container_name: tandoor-db
volumes:
- ${APP_DATA_DIR}/data/postgresql:/var/lib/postgresql/data
environment:
- POSTGRES_PORT=5432
- POSTGRES_USER=djangodb
- POSTGRES_USER=tandoor
- POSTGRES_PASSWORD=${TANDOOR_POSTGRESS_PASSWORD}
- POSTGRES_DB=djangodb
- POSTGRES_DB=tandoordb
restart: unless-stopped
networks:
- tipi_main_network