mirror of
https://github.com//cppla/ServerStatus
synced 2026-09-20 16:00:15 +08:00
24 lines
606 B
YAML
24 lines
606 B
YAML
services:
|
|
serverstatus-server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.server
|
|
image: cppla/serverstatus:server
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
container_name: serverstatus-server
|
|
restart: unless-stopped
|
|
environment:
|
|
ADMIN_TOKEN: "${ADMIN_TOKEN:-}"
|
|
HTTP_ADDR: ":80"
|
|
AGENT_ADDR: ":35601"
|
|
volumes:
|
|
- ./server/config.json:/app/config/config.json
|
|
- ./web/json:/app/data
|
|
ports:
|
|
- 35601:35601
|
|
- 8080:80
|