From ea963e23ec37de58e2693e947a4f37eca5d72a9e Mon Sep 17 00:00:00 2001 From: Stavros Iliopoulos Date: Sun, 13 Aug 2023 20:31:35 +0300 Subject: [PATCH] Update docker-compose.yml --- apps/tandoor/docker-compose.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/tandoor/docker-compose.yml b/apps/tandoor/docker-compose.yml index ee226037..d1a6b362 100644 --- a/apps/tandoor/docker-compose.yml +++ b/apps/tandoor/docker-compose.yml @@ -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