-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (50 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (50 loc) · 1.48 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
services:
daemon:
build:
context: .
dockerfile: docker/Dockerfile
privileged: true
pid: "host"
volumes:
- /sys/kernel/debug:/sys/kernel/debug:rw
- /sys/fs/bpf:/sys/fs/bpf:rw
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /var/run/mantle:/var/run/mantle:rw
- ${MANTLE_HOST_HOME}/.mantle:/app/.mantle:rw
- .:/app:ro # Mount the core application code in read-only mode so devs can iterate real-time
working_dir: /app
environment:
- MANTLE_REPO_ROOT=/app
command: python3 -m mantle.daemon.daemon
proxy:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "4000:4000"
volumes:
- ${MANTLE_HOST_HOME}/.mantle:/app/.mantle:rw
- .:/app:ro
working_dir: /app
environment:
- MANTLE_REPO_ROOT=/app
- OPENAI_API_KEY=${OPENAI_API_KEY}
command: python3 -m uvicorn mantle.litellm_proxy.proxy:app --host 0.0.0.0 --port 4000
server:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "8099:8099"
volumes:
- ${MANTLE_HOST_HOME}/.mantle:/app/.mantle:rw
- .:/app:ro
working_dir: /app
environment:
- MANTLE_REPO_ROOT=/app
- MANTLE_LOGS_DIR=/app/.mantle/logs
- MANTLE_CONFIG_DIR=/app/.mantle/config
- AGENT_OBS_ROOT=/app/.mantle/obs
- OBS_TRACE_DIR=/app/.mantle/obs/traces
- OBS_EVENTS_DIR=/app/.mantle/obs/events
command: python3 -m uvicorn mantle.server.app:app --host 0.0.0.0 --port 8099