Repository navigation
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
110 lines (104 loc) · 2.27 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
110 lines (104 loc) · 2.27 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: ai-multi-agent-platform
services:
control-plane:
build:
context: .
dockerfile: deploy/docker/control-plane.Dockerfile
restart: unless-stopped
init: true
environment:
AI_MAP_DATA_DIR: /var/lib/ai-multi-agent-platform
AI_MAP_HOST: 0.0.0.0
AI_MAP_PORT: "8000"
AI_MAP_SECURE_COOKIE: "true"
AI_MAP_LOG_LEVEL: ${AI_MAP_LOG_LEVEL:-info}
AI_MAP_SHUTDOWN_TIMEOUT_SECONDS: ${AI_MAP_SHUTDOWN_TIMEOUT_SECONDS:-30}
expose:
- "8000"
volumes:
- platform-data:/var/lib/ai-multi-agent-platform
healthcheck:
test:
- CMD
- python
- -c
- >-
import urllib.request;
urllib.request.urlopen(
"http://127.0.0.1:8000/api/v1/readiness", timeout=3
).read()
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
stop_grace_period: 3610s
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- platform
backup:
profiles:
- operations
build:
context: .
dockerfile: deploy/docker/control-plane.Dockerfile
restart: "no"
init: true
entrypoint:
- platform-backup
volumes:
- type: volume
source: platform-data
target: /var/lib/ai-multi-agent-platform
- type: bind
source: ${AI_MAP_BACKUP_DIR:-./backups}
target: /backups
bind:
create_host_path: false
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
network_mode: none
web:
build:
context: .
dockerfile: deploy/docker/web.Dockerfile
restart: unless-stopped
depends_on:
control-plane:
condition: service_healthy
ports:
- "${AI_MAP_PUBLIC_PORT:-8080}:8080"
healthcheck:
test:
- CMD
- wget
- --quiet
- --tries=1
- --spider
- http://127.0.0.1:8080/api/v1/health
interval: 10s
timeout: 5s
retries: 6
start_period: 10s
read_only: true
tmpfs:
- /config
- /data
- /tmp
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- platform
volumes:
platform-data:
networks:
platform: