Skip to content

Commit dd16a59

Browse files
authored
Merge pull request #18 from mriise/patch-3
Modify healthcheck command and start period in docs
2 parents d118558 + d3a9d93 commit dd16a59

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)