-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
301 lines (281 loc) · 7.32 KB
/
docker-compose.example.yml
File metadata and controls
301 lines (281 loc) · 7.32 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
version: "3.8"
services:
# 1. Caddy (Reverse Proxy & SSL)
caddy:
image: caddy:latest
container_name: caddy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
networks:
- caddy_net
# 2. n8n (Workflow Automation)
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
restart: always
environment:
- N8N_HOST=yourdomain.com
- N8N_PORT=5678
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://yourdomain.com/
- N8N_EDITOR_BASE_URL=https://yourdomain.com/
- N8N_SECURE_COOKIE=true
- N8N_BLOCK_FS_READ_WRITE_ACCESS_ON_NODES=false
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
- N8N_RUNNERS_ENABLED=true
- N8N_ALLOW_ENV_ACCESS_IN_NODES=true
- NODE_FUNCTION_ALLOW_BUILTIN=*
- NODE_FUNCTION_ALLOW_EXTERNAL=*
- GENERIC_TIMEZONE=America/New_York
- N8N_PROXY_HOPS=1
# Paid API Injection (Antigravity v2.0)
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY}
- NAV_GOOGLE_API_KEY=${GOOGLE_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- n8n_data:/home/node/.n8n
- ./docs:/home/node/.n8n-files/docs
networks:
- caddy_net
# 3. Portainer CE (Container Management)
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./deploy/portainer_data:/data
networks:
- caddy_net
# 4. Gitea (Self-Hosted Git)
gitea:
image: gitea/gitea:latest
container_name: gitea
restart: always
environment:
- USER_UID=1000
- USER_GID=1000
ports:
- "2222:22" # SSH Access
volumes:
- gitea_data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- caddy_net
# 5. Uptime Kuma (Monitoring)
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: always
dns:
- 8.8.8.8
- 1.1.1.1
volumes:
- ./deploy/uptime_kuma_data:/app/data
networks:
- caddy_net
# 6. Watchtower (Automatic Updates)
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
environment:
- DOCKER_API_VERSION=1.45
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 0 4 * * *" --cleanup
# 7. Open WebUI (AI Interface)
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: always
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- ENABLE_OLLAMA_API=true
- ENABLE_OPENAI_API=true
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
- WEBUI_URL=https://ai.yourdomain.com
# Antigravity v2.0: DeepSeek Direct + OpenRouter
- OPENAI_API_BASE_URLS=https://api.deepseek.com;https://openrouter.ai/api/v1
- OPENAI_API_KEYS=${DEEPSEEK_API_KEY};${OPENROUTER_API_KEY}
- ENABLE_GOOGLE_API=true
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- ENABLE_GEMINI_API=true
- GITHUB_TOKEN=${GITHUB_TOKEN}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- open_webui_data:/app/backend/data
depends_on:
- ollama
- qdrant
networks:
- caddy_net
# 8. Browserless (Headless Ghost)
browserless:
image: ghcr.io/browserless/chromium:latest
container_name: browserless
restart: always
environment:
- TOKEN=${BROWSERLESS_TOKEN}
networks:
- caddy_net
# 9. File Browser (Web File Manager)
filebrowser:
image: filebrowser/filebrowser:v2
container_name: filebrowser
restart: always
environment:
- FB_BASEURL=/
volumes:
- ./docs:/srv
- filebrowser_config:/config
- filebrowser_db:/database
networks:
- caddy_net
# --- Antigravity v2.0 Extensions ---
# 10. Ollama (Embedding Server)
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: always
# Auto-pull lightweight embedding model
entrypoint: /bin/sh
command: "-c 'ollama serve & sleep 5 && ollama pull nomic-embed-text'"
volumes:
- ollama:/root/.ollama
networks:
- caddy_net
# 11. Qdrant (Vector Database)
qdrant:
image: qdrant/qdrant:latest
container_name: qdrant
restart: always
volumes:
- qdrant_storage:/qdrant/storage
environment:
- QDRANT__SERVICE__GRPC_PORT=6334
ports:
- "6333:6333"
networks:
- caddy_net
# 12. Beszel Agent (Metrics Source)
beszel-agent:
image: henrygd/beszel-agent:latest
container_name: beszel-agent
restart: always
network_mode: host
environment:
- PORT=45876
- KEY=${BESZEL_KEY}
- TOKEN=${BESZEL_TOKEN}
- HUB_URL=https://monitor.yourdomain.com
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./beszel_agent_data:/var/lib/beszel-agent
# 13. Beszel Hub (Metrics Dashboard)
beszel-hub:
image: henrygd/beszel:latest
container_name: beszel-hub
restart: always
ports:
- "8090:8090"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- beszel_data:/app/pb_data
networks:
- caddy_net
# 14. ChangeDetection.io (Web Watcher)
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io
container_name: changedetection
restart: always
environment:
- PORT=5000
- PLAYWRIGHT_DRIVER_URL=ws://browserless:3000
- BASE_URL=https://watch.yourdomain.com
volumes:
- changedetection_data:/datastore
networks:
- caddy_net
# 15. Homarr (Dashboard)
homarr:
image: ghcr.io/ajnart/homarr:latest
container_name: homarr
restart: always
volumes:
- ./homarr_configs:/app/data/configs
- ./homarr_icons:/app/public/icons
- homarr_data:/data
networks:
- caddy_net
# 16. IT-Tools (Developer Utilities)
it-tools:
image: corentinth/it-tools:latest
container_name: it-tools
restart: always
networks:
- caddy_net
# 17. NeverIdle (Oracle Cloud Keepalive)
neveridle:
image: alpine:latest
container_name: neveridle
restart: always
command: sh -c "yes > /dev/null"
networks:
- caddy_net
networks:
caddy_net:
driver: bridge
volumes:
caddy_data:
external: true
name: deploy_caddy_data
caddy_config:
external: true
name: deploy_caddy_config
gitea_data:
external: true
name: deploy_gitea_data
n8n_data:
external: true
name: n8n_n8n_data
open_webui_data:
external: true
name: assets_open_webui_data
filebrowser_config:
external: true
name: deploy_filebrowser_config
filebrowser_db:
external: true
name: deploy_filebrowser_db
ollama:
external: true
name: deploy_ollama
qdrant_storage:
external: true
name: deploy_qdrant_storage
beszel_data:
external: true
name: deploy_beszel_data
changedetection_data:
external: true
name: deploy_changedetection_data
homarr_data:
external: true
name: deploy_homarr_data