Skip to content

Commit 8109fd4

Browse files
committed
feat: implement healthchecks
1 parent c1ec990 commit 8109fd4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ services:
1313
- certs:/etc/nginx/certs
1414
- vhost:/etc/nginx/vhost.d
1515
- html:/usr/share/nginx/html
16+
healthcheck:
17+
test: ["CMD", "curl", "-f", "http://localhost"]
18+
interval: 120s
19+
timeout: 10s
20+
retries: 5
1621
networks:
1722
- kali-net
1823

@@ -30,6 +35,11 @@ services:
3035
- vhost:/etc/nginx/vhost.d
3136
- html:/usr/share/nginx/html
3237
- acme:/etc/acme.sh
38+
healthcheck:
39+
test: ["CMD", "pgrep", "bash"]
40+
interval: 120s
41+
timeout: 10s
42+
retries: 3
3343
networks:
3444
- kali-net
3545

0 commit comments

Comments
 (0)