Add database for tandoor.

This commit is contained in:
Stavros Iliopoulos 2023-08-13 11:13:51 +00:00
parent ebae1d2b8c
commit 8462d98870

View File

@ -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