Skip to content

Commit 087f5ab

Browse files
committed
healthcheck for nextcloud
1 parent fc45130 commit 087f5ab

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

experiments/nextcloud/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ services:
1313
networks:
1414
- proxy
1515
- db
16+
healthcheck:
17+
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1/status.php -o /dev/null || exit 1"]
18+
interval: 30s
19+
timeout: 10s
20+
retries: 3
21+
start_period: 120s # first-time install / upgrade can be slow; bump if needed
1622

1723
networks:
1824
proxy:

0 commit comments

Comments
 (0)