Skip to content

Commit 9cde5d7

Browse files
committed
Re-add healthchecks
1 parent 86ad4f9 commit 9cde5d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker-compose.prod.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ services:
1717
replicas: 1
1818
update_config:
1919
order: start-first
20+
healthcheck:
21+
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
22+
interval: 30s
23+
timeout: 10s
24+
retries: 3
2025
depends_on:
2126
- db
2227
jobs:
@@ -53,6 +58,11 @@ services:
5358
order: start-first
5459
restart_policy:
5560
condition: on-failure
61+
healthcheck:
62+
test: ["CMD", "pg_isready", "-U", "db"]
63+
interval: 30s
64+
timeout: 10s
65+
retries: 3
5666
volumes:
5767
db1:
5868
networks:

0 commit comments

Comments
 (0)