Skip to content

Commit 15de65b

Browse files
committed
feat(docker): add dev override template for hot-reload (#1911)
Add docker-compose.override.example.yml with volume mounts for live code reloading, debug ports, and relaxed health checks. - Added to .gitignore: docker-compose.override.yml (dev-local)
1 parent 7e98fe4 commit 15de65b

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ wheels/
291291
# === DOCKER ===
292292
.dockerignore
293293
Dockerfile.*
294+
docker-compose.override.yml
294295

295296
# === MISC ===
296297
.Python
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# AutoBot Docker Compose — Development Override (#1911)
2+
# Activated automatically by Docker Compose when present.
3+
# Provides: live code reloading, debug ports, relaxed health checks.
4+
#
5+
# Usage:
6+
# docker compose up -d # Automatically uses this override
7+
# docker compose -f docker-compose.yml up -d # Skip override (production)
8+
#
9+
# AutoBot - AI-Powered Automation Platform
10+
# Copyright (c) 2025 mrveiss
11+
# Author: mrveiss
12+
13+
services:
14+
autobot-backend:
15+
volumes:
16+
- ./autobot-backend:/app/autobot-backend
17+
- ./autobot-shared:/app/autobot-shared
18+
command: ["python3.12", "-m", "uvicorn", "main:app",
19+
"--host", "0.0.0.0", "--port", "8000",
20+
"--reload", "--reload-dir", "/app/autobot-backend",
21+
"--app-dir", "/app/autobot-backend"]
22+
environment:
23+
- AUTOBOT_ENVIRONMENT=development
24+
- AUTOBOT_LOG_LEVEL=DEBUG
25+
ports:
26+
- "5678:5678" # debugpy
27+
healthcheck:
28+
interval: 30s
29+
timeout: 15s
30+
retries: 10
31+
start_period: 180s
32+
33+
autobot-slm:
34+
volumes:
35+
- ./autobot-slm-backend:/app/autobot-slm-backend
36+
- ./autobot-shared:/app/autobot-shared
37+
command: ["python3.12", "-m", "uvicorn", "main:app",
38+
"--host", "0.0.0.0", "--port", "8000",
39+
"--reload", "--reload-dir", "/app/autobot-slm-backend",
40+
"--app-dir", "/app/autobot-slm-backend"]
41+
environment:
42+
- AUTOBOT_ENVIRONMENT=development
43+
- AUTOBOT_LOG_LEVEL=DEBUG
44+
healthcheck:
45+
interval: 30s
46+
timeout: 15s
47+
retries: 10
48+
start_period: 60s
49+
50+
autobot-frontend:
51+
volumes:
52+
- ./autobot-frontend/dist:/usr/share/nginx/html

0 commit comments

Comments
 (0)