-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
184 lines (178 loc) · 5.2 KB
/
docker-compose.yml
File metadata and controls
184 lines (178 loc) · 5.2 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# ============================================
# Overseer Docker Compose - Production
# ============================================
# Usage:
# docker-compose up -d # Start all services
# docker-compose logs -f # View logs
# docker-compose down # Stop all services
# docker-compose up -d --build # Rebuild and start
# ============================================
services:
# ======================
# Web Admin Panel (Next.js)
# ======================
web:
build:
context: .
dockerfile: Dockerfile
target: runner
container_name: overseer-web
restart: unless-stopped
ports:
- "${PORT:-3000}:3000"
environment:
- NODE_ENV=production
- PORT=3000
- DATABASE_PATH=/app/data/overseer.db
- SESSION_SECRET=${SESSION_SECRET}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- DEFAULT_ADMIN_USERNAME=${DEFAULT_ADMIN_USERNAME:-admin}
- DEFAULT_ADMIN_PASSWORD=${DEFAULT_ADMIN_PASSWORD:-changeme123}
# LLM Providers (optional - can be added via UI)
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
volumes:
- overseer-data:/app/data
- overseer-skills:/app/skills
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- overseer-network
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# ======================
# Telegram Bot
# ======================
telegram-bot:
build:
context: .
dockerfile: Dockerfile
target: bot
container_name: overseer-telegram
restart: unless-stopped
depends_on:
web:
condition: service_healthy
environment:
- NODE_ENV=production
- DATABASE_PATH=/app/data/overseer.db
- SESSION_SECRET=${SESSION_SECRET}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN:-}
- TELEGRAM_ALLOWED_USERS=${TELEGRAM_ALLOWED_USERS:-}
# LLM Providers
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
# Agent settings
- AGENT_MAX_STEPS=${AGENT_MAX_STEPS:-25}
- AGENT_TIMEOUT_MS=${AGENT_TIMEOUT_MS:-120000}
- ALLOW_SHELL_COMMANDS=${ALLOW_SHELL_COMMANDS:-true}
volumes:
- overseer-data:/app/data
- overseer-skills:/app/skills
# Mount host directories for file access (optional, adjust as needed)
- ${HOST_HOME:-/home}:/host/home:rw
- ${HOST_PROJECTS:-/opt/projects}:/host/projects:rw
networks:
- overseer-network
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# ======================
# Discord Bot (Future)
# ======================
discord-bot:
build:
context: .
dockerfile: Dockerfile
target: bot
container_name: overseer-discord
restart: unless-stopped
profiles:
- discord # Only starts with: docker-compose --profile discord up
depends_on:
web:
condition: service_healthy
environment:
- NODE_ENV=production
- DATABASE_PATH=/app/data/overseer.db
- SESSION_SECRET=${SESSION_SECRET}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN:-}
# LLM Providers
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
volumes:
- overseer-data:/app/data
- overseer-skills:/app/skills
networks:
- overseer-network
command: ["npx", "tsx", "src/bot/discord.ts"]
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# ======================
# All-in-One (Alternative)
# ======================
allinone:
build:
context: .
dockerfile: Dockerfile
target: allinone
container_name: overseer-allinone
restart: unless-stopped
profiles:
- allinone # Only starts with: docker-compose --profile allinone up
ports:
- "${PORT:-3000}:3000"
environment:
- NODE_ENV=production
- PORT=3000
- DATABASE_PATH=/app/data/overseer.db
- SESSION_SECRET=${SESSION_SECRET}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- DEFAULT_ADMIN_USERNAME=${DEFAULT_ADMIN_USERNAME:-admin}
- DEFAULT_ADMIN_PASSWORD=${DEFAULT_ADMIN_PASSWORD:-changeme123}
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN:-}
- TELEGRAM_ALLOWED_USERS=${TELEGRAM_ALLOWED_USERS:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
volumes:
- overseer-data:/app/data
- overseer-skills:/app/skills
networks:
- overseer-network
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# ======================
# Networks
# ======================
networks:
overseer-network:
driver: bridge
# ======================
# Volumes
# ======================
volumes:
overseer-data:
driver: local
overseer-skills:
driver: local