Fix db configs...

This commit is contained in:
Stavros Iliopoulos 2023-08-13 11:28:38 +00:00 committed by Nicolas Meienberger
parent d820fce105
commit f76a8a406d

View File

@ -11,7 +11,7 @@ services:
environment: environment:
- SECRET_KEY=${TANDOOR_SECRET_KEY} - SECRET_KEY=${TANDOOR_SECRET_KEY}
- DB_ENGINE=django.db.backends.postgresql - DB_ENGINE=django.db.backends.postgresql
- POSTGRES_HOST=db_recipes - POSTGRES_HOST=tandoor_db
- POSTGRES_PORT=5432 - POSTGRES_PORT=5432
- POSTGRES_USER=djangodb - POSTGRES_USER=djangodb
- POSTGRES_PASSWORD=${TANDOOR_POSTGRESS_PASSWORD} - POSTGRES_PASSWORD=${TANDOOR_POSTGRESS_PASSWORD}
@ -47,12 +47,11 @@ services:
- tandoor_db - tandoor_db
tandoor_db: tandoor_db:
restart: always
image: postgres:15-alpine image: postgres:15-alpine
container_name: tandoor_db
volumes: volumes:
- ${APP_DATA_DIR}/postgresql:/var/lib/postgresql/data - ${APP_DATA_DIR}/postgresql:/var/lib/postgresql/data
environment: environment:
- POSTGRES_HOST=db_recipes
- POSTGRES_PORT=5432 - POSTGRES_PORT=5432
- POSTGRES_USER=djangodb - POSTGRES_USER=djangodb
- POSTGRES_PASSWORD=${TANDOOR_POSTGRESS_PASSWORD} - POSTGRES_PASSWORD=${TANDOOR_POSTGRESS_PASSWORD}