fix(Postgres): Add container name or postgres by default on postgres host

This commit is contained in:
2022-01-26 11:09:23 +01:00
parent 5e2338036e
commit e301bb6b64
5 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ services:
environment:
# https://grafana.com/docs/grafana/latest/administration/configuration/#database
GF_DATABASE_TYPE: postgres
GF_DATABASE_HOST: postgres # Name is same as ../postgres/docker-compose.yml:8
GF_DATABASE_HOST: ${POSTGRES_CONTAINER_NAME:-postgres} # Default name is same as ../postgres/docker-compose.yml:8
GF_DATABASE_NAME: ${POSTGRES_DB:?err}
GF_DATABASE_USER: ${POSTGRES_USER:?err}
GF_DATABASE_PASSWORD: ${POSTGRES_PASSWORD:?err}