-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 797 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (32 loc) · 797 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
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
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