From 8462d98870ef29f6c02c41cff9ed1e7a4306636a Mon Sep 17 00:00:00 2001 From: Stavros Iliopoulos Date: Sun, 13 Aug 2023 11:13:51 +0000 Subject: [PATCH] Add database for tandoor. --- apps/tandoor/docker-compose.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/tandoor/docker-compose.yml b/apps/tandoor/docker-compose.yml index 6caa0ebf..44fc34b0 100644 --- a/apps/tandoor/docker-compose.yml +++ b/apps/tandoor/docker-compose.yml @@ -43,3 +43,19 @@ services: traefik.http.routers.tandoor-local.entrypoints: websecure traefik.http.routers.tandoor-local.service: tandoor traefik.http.routers.tandoor-local.tls: true + depends_on: + - tandoor_db + + tandoor_db: + restart: always + image: postgres:15-alpine + volumes: + - ${APP_DATA_DIR}/postgresql:/var/lib/postgresql/data + enviroment: + - POSTGRES_HOST=db_recipes + - POSTGRES_PORT=5432 + - POSTGRES_USER=djangodb + - POSTGRES_PASSWORD=${TANDOOR_POSTGRESS_PASSWORD} + - POSTGRES_DB=djangodb + networks: + - tipi_main_network