-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 827 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 827 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
34
35
services:
ccpg:
build:
context: .
image: cc-provider-gtw:local
environment:
NODE_ENV: production
CCPG_RUNTIME_MODE: docker
CCPG_STORAGE_BACKEND: sqlite
CCPG_SQLITE_PATH: /data/ccpg.sqlite
CCPG_CONFIG_DIR: /data
CCPG_PANEL_PORT: "6767"
CCPG_PROXY_PORT: "49250"
CC_GATEWAY_BIND_HOST: 0.0.0.0
ports:
- "6767:6767"
- "49250:49250"
volumes:
- ccpg_data:/data
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:'+(process.env.CCPG_PANEL_PORT||6767)+'/api/status').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
volumes:
ccpg_data: