towards healthchecks for all containers
This commit is contained in:
@@ -16,8 +16,12 @@ services:
|
||||
- /opt/postgres/cert.pem:/cert.pem
|
||||
- /opt/postgres/key.pem:/key.pem
|
||||
entrypoint: ["/bin/bash", "/entrypoint.sh"]
|
||||
|
||||
command:
|
||||
- postgres
|
||||
- -c
|
||||
- config_file=/etc/postgresql/postgresql.conf
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user