Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 24f4fb1

Browse files
committed
updated README about healthcheck in docker-compose
1 parent 3ad0737 commit 24f4fb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,12 @@ If you wish to point the healthcheck at a different port with docker command, ad
181181

182182
## Setting the healthcheck in docker-compose file
183183

184-
You can add the following to set a custom healthcheck in a docker compose file.
184+
You can add the following to set a custom healthcheck in a docker compose file. You'll need version >2.1 for this to work.
185185

186186
```
187187
healthcheck:
188188
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
189+
interval: 1m
190+
timeout: 10s
191+
retries: 3
189192
```

0 commit comments

Comments
 (0)