-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (58 loc) · 1.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (58 loc) · 1.24 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
mcp:
build: .
container_name: nvc-mcp
env_file: .env
environment:
- NVC_DB_PATH=/data/nvc.db
ports:
- "${NVC_PORT:-9998}:${NVC_PORT:-9998}"
volumes:
- nvc-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${NVC_PORT:-9998}/health"]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 1G
cpus: "1.0"
webui:
build: .
container_name: nvc-webui
command: python webui.py --host 0.0.0.0 --port 9999
env_file: .env
environment:
- NVC_DB_PATH=/data/nvc.db
ports:
- "${NVC_UI_PORT:-9999}:9999"
volumes:
- nvc-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9999/health"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 512M
cpus: "0.5"
volumes:
nvc-data: