chore: fix docker compose postgres env variable

This commit is contained in:
gabrieljablonski 2025-05-10 01:00:47 -03:00
parent 04137ab932
commit 7cf3cf96e3

View File

@ -13,6 +13,7 @@ services:
- NODE_ENV=production
- RAILS_ENV=production
- INSTALLATION_ENV=docker
- DEFAULT_LOCALE=pt_BR
- FRONTEND_URL=${FRONTEND_URL}
- INTERNAL_HOST_URL=${INTERNAL_HOST_URL}
- POSTGRES_HOST=postgres
@ -104,12 +105,12 @@ services:
- 'postgres:/var/lib/postgresql/data'
environment:
- POSTGRES_DB=${POSTGRES_DB:-chatwoot_production}
- POSTGRES_USERNAME=${SERVICE_USER_POSTGRES}
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
healthcheck:
test:
- CMD-SHELL
- 'pg_isready -h localhost -p 5432 -U $${POSTGRES_USERNAME} -d $${POSTGRES_DB}'
- 'pg_isready -h localhost -p 5432 -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
interval: 20s
timeout: 20s
retries: 10