Renaming db container to fit the scheme of other stacks

This commit is contained in:
Akumatic 2025-01-31 22:32:03 +01:00
parent 8e19ba428d
commit 9c5920e81f

View File

@ -6,7 +6,7 @@ services:
image: ghcr.io/mealie-recipes/mealie:latest
container_name: mealie
depends_on:
db:
db_pg17:
condition: service_healthy
deploy:
resources:
@ -25,7 +25,7 @@ services:
POSTGRES_PASSWORD: ${DATABASE_PASS}
# Backend ENV Variables
DB_ENGINE: postgres
POSTGRES_SERVER: db
POSTGRES_SERVER: db_pg17
POSTGRES_PORT: 5432
ALLOW_SIGNUP: False
TZ: Europe/Berlin
@ -53,9 +53,9 @@ services:
- OIDC_USER_GROUP
- OIDC_ADMIN_GROUP
db:
container_name: mealie_db
db_pg17:
image: postgres:17
container_name: mealie_db_pg17
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d `cat $$POSTGRES_DB_FILE` -U `cat $$POSTGRES_USER_FILE`" ]
@ -64,7 +64,7 @@ services:
retries: 5
timeout: 5s
volumes:
- db:/var/lib/postgresql/data
- db_pg17:/var/lib/postgresql/data
networks:
- internal
environment:
@ -78,9 +78,9 @@ services:
volumes:
data:
name: data_mealie
db:
name: db_mealie
name: mealie_data
db_pg17:
name: mealie_db_pg17
networks:
internal: