Skip to content

Commit 43c3d3e

Browse files
authored
Modify healthcheck command and start period
Updated healthcheck command and start period in deployment configuration.
1 parent 12c1b74 commit 43c3d3e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

content/docs/server/deployment.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ services:
3434
basis-server:
3535
image: ghcr.io/basisvr/basis-server:latest # or :nightly for most recent changes
3636
container_name: basis-server
37-
init: true # handle process termination
37+
init: true # handle process termination
3838
restart: unless-stopped
3939
environment:
4040
SetPort: 4296 # basis port
@@ -54,12 +54,12 @@ services:
5454
- ./logs:/app/logs
5555
# exercise health endpoint (optional)
5656
healthcheck:
57-
# GET request, void all output.
58-
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --output-document=/dev/null http://localhost:10666/health &> /dev/null || exit 1"]
57+
# http GET request
58+
test: ["CMD", "curl", "-f", "http://localhost:10666/health"]
5959
interval: 30s
6060
timeout: 10s
6161
retries: 3
62-
start_period: 20s
62+
start_period: 2s
6363
```
6464
Run once to create `config.xml` (under `./config` in the example). Settings in xml will be overridden by environment variables.
6565

0 commit comments

Comments
 (0)