fix: change db healthcheck to specify db name
This commit is contained in:
@@ -63,7 +63,7 @@ compose_yml = f"""services:
|
|||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "pg_isready", "-U", "{db_user}"]
|
test: ["CMD", "pg_isready", "-U", {db_user}, "-d", {db_name}]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user