Add healthchecks to postgres and pgadmin
This commit is contained in:
parent
19f9f58630
commit
d395bb4f39
@ -34,6 +34,11 @@ services:
|
||||
<<: [*db-environment]
|
||||
volumes:
|
||||
- *db-location
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
pgbackups:
|
||||
image: prodrigestivill/postgres-backup-local:13
|
||||
restart: always
|
||||
@ -55,3 +60,5 @@ services:
|
||||
<<: [*admin-environment]
|
||||
ports:
|
||||
- *pgadmin-port
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost/ || exit 1"]
|
||||
|
Loading…
Reference in New Issue
Block a user