-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (86 loc) Β· 2.59 KB
/
docker-compose.yml
File metadata and controls
91 lines (86 loc) Β· 2.59 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
# Codomyrmex Development Stack
# Usage: docker compose up -d
# Ports: 8787 (dashboard), 8888 (PM server), 6379 (Redis), 11434 (Ollama)
services:
# ββ Core Application βββββββββββββββββββββββββββββββββββββββββββββ
app:
build:
context: .
dockerfile: Dockerfile
container_name: codomyrmex-app
ports:
- "8787:8787"
environment:
- PYTHONUNBUFFERED=1
- REDIS_URL=redis://redis:6379/0
- OLLAMA_BASE_URL=http://ollama:11434
- CODOMYRMEX_ENV=docker
depends_on:
redis:
condition: service_healthy
volumes:
- app-data:/app/data
healthcheck:
test: ["CMD", "python", "-c", "print('ok')"]
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped
# ββ Redis Cache ββββββββββββββββββββββββββββββββββββββββββββββββββ
redis:
image: redis:7-alpine
container_name: codomyrmex-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
restart: unless-stopped
# ββ Ollama LLM Server βββββββββββββββββββββββββββββββββββββββββββ
ollama:
image: ollama/ollama:latest
container_name: codomyrmex-ollama
ports:
- "11434:11434"
volumes:
- ollama-models:/root/.ollama
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
# Uncomment for GPU support:
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
# ββ PM Dashboard βββββββββββββββββββββββββββββββββββββββββββββββββ
dashboard:
build:
context: .
dockerfile: Dockerfile
container_name: codomyrmex-dashboard
ports:
- "8888:8888"
environment:
- PYTHONUNBUFFERED=1
- REDIS_URL=redis://redis:6379/0
- OLLAMA_BASE_URL=http://ollama:11434
- CODOMYRMEX_ENV=docker
- DASHBOARD_PORT=8888
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
volumes:
app-data:
redis-data:
ollama-models: