chore: fix docker compose postgres env variable
This commit is contained in:
parent
04137ab932
commit
7cf3cf96e3
@ -13,6 +13,7 @@ services:
|
|||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- RAILS_ENV=production
|
- RAILS_ENV=production
|
||||||
- INSTALLATION_ENV=docker
|
- INSTALLATION_ENV=docker
|
||||||
|
- DEFAULT_LOCALE=pt_BR
|
||||||
- FRONTEND_URL=${FRONTEND_URL}
|
- FRONTEND_URL=${FRONTEND_URL}
|
||||||
- INTERNAL_HOST_URL=${INTERNAL_HOST_URL}
|
- INTERNAL_HOST_URL=${INTERNAL_HOST_URL}
|
||||||
- POSTGRES_HOST=postgres
|
- POSTGRES_HOST=postgres
|
||||||
@ -104,12 +105,12 @@ services:
|
|||||||
- 'postgres:/var/lib/postgresql/data'
|
- 'postgres:/var/lib/postgresql/data'
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=${POSTGRES_DB:-chatwoot_production}
|
- POSTGRES_DB=${POSTGRES_DB:-chatwoot_production}
|
||||||
- POSTGRES_USERNAME=${SERVICE_USER_POSTGRES}
|
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
- CMD-SHELL
|
- 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
|
interval: 20s
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user