-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 869 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (32 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
panel:
build:
context: .
dockerfile: Dockerfile
image: zero-relay-panel:local
init: true
ports:
- "8080:8080"
environment:
NODE_ENV: production
ZERO_PANEL_HOME: /data
ZERO_PANEL_LISTEN: 0.0.0.0:8080
ZERO_MANAGE_MODE: spawn
ZERO_AUTO_START: "1"
ZERO_BINARY: /usr/local/bin/zero
ZERO_CONFIG: /etc/zero/config.json
ZERO_CONTROL_HTTP: http://127.0.0.1:9090
volumes:
- zero-panel-data:/data
- zero-config:/etc/zero
- ${ZERO_BINARY_HOST_PATH:-./runtime/zero/zero}:/opt/zero-bin/zero:ro
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/api/health | grep -q '\"panel\":\"up\"'"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
restart: unless-stopped
volumes:
zero-panel-data:
zero-config: