DONE: fix postgres volume mounting
This commit is contained in:
@@ -66,12 +66,16 @@ services:
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=${DB_DATABASE}
|
||||
volumes:
|
||||
- db-data-production:/var/lib/postgres
|
||||
- db-data-production:/var/lib/postgresql/data
|
||||
- ./be/docker/postgres/conf.d:/etc/postgres/conf.d:ro
|
||||
networks:
|
||||
- mykopkb-production-network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", 'pg_isready -U "$$POSTGRES_USER" || exit 1']
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
'pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB" || exit 1',
|
||||
]
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user