Skip to content

Commit 4146af0

Browse files
healthcheck
1 parent 363f963 commit 4146af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ services:
2929
command: ["-c", "shared_buffers=8GB", "-c", "max_connections=200", "-c", "work_mem=30MB", "-c", "logging_collector=on", "-c", "log_statement=all", "-c", "log_directory=/var/log/postgresql/"]
3030
container_name: bag3d-data-postgresql-${BAG3D_DOCKER_IMAGE_TAG}
3131
healthcheck:
32-
test: ["CMD-SHELL", "pg_isready -d ${BAG3D_PG_DATABASE} -U {BAG3D_PG_USER} -p 5432"]
33-
interval: 3s
32+
test: ["CMD-SHELL", "pg_isready -d ${BAG3D_PG_DATABASE} -U {BAG3D_PG_USER} -p ${BAG3D_PG_PORT_ON_HOST}"]
33+
interval: 5s
3434
retries: 20
3535
shm_size: '1gb'
3636
ports:

0 commit comments

Comments
 (0)