forked from WAHIB-EL-KHADIRI/AgentOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (71 loc) · 1.91 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (71 loc) · 1.91 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
# Experimental packaging stack. The current CLI does not expose a standalone
# standalone bus command, so this stack uses the supervisor image
# until a dedicated bus/server entrypoint is added.
x-agentos-service-defaults: &agentos-service-defaults
restart: unless-stopped
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
services:
agentos-bus:
<<: *agentos-service-defaults
build:
context: .
dockerfile: Dockerfile
target: supervisor
ports:
- "9876:9876"
environment:
- RUST_LOG=info
healthcheck:
test: ["CMD", "agentOS", "supervisor", "--health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
agentos-runtime:
<<: *agentos-service-defaults
build:
context: .
dockerfile: Dockerfile
target: runtime
depends_on:
agentos-bus:
condition: service_healthy
environment:
- RUST_LOG=info
- BUS_ADDR=http://agentos-bus:9876
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
healthcheck:
test: ["CMD", "agentOS", "health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
dashboard:
<<: *agentos-service-defaults
build:
context: ./dashboard
dockerfile: Dockerfile
ports:
- "5173:5173"
depends_on:
agentos-bus:
condition: service_healthy
environment:
- VITE_API_URL=http://localhost:9876
read_only: true
tmpfs:
- /tmp
- /var/cache/nginx
- /var/run
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5173/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
# Note: no Redis/Postgres services are declared here on purpose. The current
# runtime has no code path that uses them; external storage services will be
# added to this stack together with the backend code that actually needs them.