Skip to content

Commit d3a9d93

Browse files
authored
Modify healthcheck command and start period in docs
Updated healthcheck command in server setup documentation to use curl instead of wget and reduced start period.
1 parent d118558 commit d3a9d93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/server-setup.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ services:
5656
- ./logs:/app/logs
5757
# exercise health endpoint (optional)
5858
healthcheck:
59-
# GET request, void all output.
60-
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --output-document=/dev/null http://localhost:10666/health &> /dev/null || exit 1"]
59+
# http GET request
60+
test: ["CMD", "curl", "-f", "http://localhost:10666/health"]
6161
interval: 30s
6262
timeout: 10s
6363
retries: 3
64-
start_period: 20s
64+
start_period: 2s
6565
```
6666
Run once to create `config.xml` (under `./config` in the example). Settings in xml will be overridden by enviornment variables.
6767

0 commit comments

Comments
 (0)