-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
142 lines (135 loc) · 3.92 KB
/
docker-compose.yml
File metadata and controls
142 lines (135 loc) · 3.92 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
# ============================================
# Docker Compose - AI Development Environment
# ============================================
# Ambiente de desarrollo colaborativo con agentes de IA
services:
# ============================================
# VibeKanban - Orquestación de Tareas
# ============================================
vibekanban:
build:
context: ./docker
dockerfile: Dockerfile.vibekanban
container_name: vibekanban
ports:
- "${VIBEKANBAN_PORT:-3000}:3000"
volumes:
- ./workspace:/repos
- ./config/vibekanban:/app/config
- vibekanban-data:/app/.vibe-kanban
- /var/run/docker.sock:/var/run/docker.sock
environment:
- HOST=0.0.0.0
- PORT=3000
- GIT_AUTHOR_NAME=${GIT_AUTHOR_NAME:-AI Dev Team}
- GIT_AUTHOR_EMAIL=${GIT_AUTHOR_EMAIL:-ai@dev.local}
networks:
- ai-dev-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
restart: unless-stopped
# ============================================
# OpenCode - Agente de Codificación
# ============================================
opencode:
build:
context: ./docker
dockerfile: Dockerfile.opencode
container_name: opencode
stdin_open: true
tty: true
volumes:
- ./workspace:/workspace
- ./config/opencode:/home/dev/.config/opencode
- ./skills:/home/dev/.config/opencode/skills
- ./agents:/home/dev/.config/opencode/agents
- opencode-cache:/home/dev/.cache/opencode
environment:
- OPENCODE_API_KEY=${OPENCODE_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- TERM=xterm-256color
working_dir: /workspace
networks:
- ai-dev-network
depends_on:
vibekanban:
condition: service_healthy
profiles:
- interactive
# ============================================
# OpenSpec - Gestión de Especificaciones
# ============================================
openspec:
build:
context: ./docker
dockerfile: Dockerfile.opencode
container_name: openspec
command: ["tail", "-f", "/dev/null"]
volumes:
- ./workspace:/workspace
- ./config/openspec:/workspace/openspec-config
working_dir: /workspace
networks:
- ai-dev-network
profiles:
- tools
# ============================================
# Workspace Runner - Ambiente de Ejecución
# ============================================
workspace-runner:
build:
context: ./docker
dockerfile: Dockerfile.workspace
container_name: workspace-runner
ports:
- "${APP_PORT:-8000}:8000" # FastAPI/Reflex
- "${APP_FRONTEND_PORT:-3002}:3000" # Reflex Frontend
volumes:
- ./workspace:/app
- workspace-venv:/app/.venv
- workspace-node:/app/node_modules
environment:
- PYTHONPATH=/app
- DATABASE_URL=${DATABASE_URL:-sqlite:///./app.db}
working_dir: /app
networks:
- ai-dev-network
profiles:
- runtime
# ============================================
# Database - PostgreSQL (Opcional)
# ============================================
database:
image: postgres:16-alpine
container_name: ai-dev-db
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER:-aidev}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-aidev123}
- POSTGRES_DB=${POSTGRES_DB:-aidev}
networks:
- ai-dev-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-aidev}"]
interval: 10s
timeout: 5s
retries: 5
profiles:
- database
networks:
ai-dev-network:
driver: bridge
volumes:
vibekanban-data:
opencode-cache:
workspace-venv:
workspace-node:
postgres-data: