-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (35 loc) · 1 KB
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:
commandcode-bridge:
image: commandcode-bridge:latest
build:
context: ..
dockerfile: Dockerfile
restart: unless-stopped
env_file:
- ./env.production
environment:
# Container must listen on all interfaces for Docker port publishing.
# Host exposure remains localhost-only via the ports mapping below.
HOST: 0.0.0.0
PORT: 9992
# The dashboard restart button exits the process; the restart policy above brings it back.
# Without this the container is unsupervised and /admin/restart cannot take effect.
COMMANDCODE_BRIDGE_RESTART_MODE: exit
ports:
- "127.0.0.1:9992:9992"
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:9992/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 30s
timeout: 5s
retries: 3