Skip to content

Commit 36687d9

Browse files
committed
Integrating healthcheck to prevent connection_refused fails
1 parent c9797c2 commit 36687d9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

wordpress-official-starter/compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ services:
2727
- ./wordpress.conf:/etc/apache2/sites-enabled/wordpress.conf:ro
2828
networks:
2929
- gcb-mariadb-wordpress-network
30+
healthcheck:
31+
test: curl --fail --silent -k http://gcb-wordpress
32+
interval: "1h" # effectively turns repeated healthchecks during runtime off
33+
start_period: "60s"
34+
start_interval: "1s"
3035

3136
networks:
3237
gcb-mariadb-wordpress-network:

wordpress-official-starter/usage_scenario.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ services:
99
image: greencoding/gcb_playwright:v16
1010
networks:
1111
- gcb-mariadb-wordpress-network
12+
depends_on:
13+
gcb-wordpress:
14+
condition: service_healthy
1215

1316
flow:
1417
- name: Check Website

0 commit comments

Comments
 (0)