-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
124 lines (118 loc) · 3.45 KB
/
docker-compose.yml
File metadata and controls
124 lines (118 loc) · 3.45 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
# OmoiOS — Full-stack development compose
#
# Usage:
# cp .env.example .env.local # fill in your API keys
# docker compose up # start everything
#
# Services: postgres, redis, backend (API), worker, frontend
# Ports: postgres=15432, redis=16379, backend=18000, frontend=3000
#
# For hot-reload backend development, use the backend-specific compose:
# cd backend && docker compose watch
# Or via Justfile:
# just watch
services:
postgres:
image: pgvector/pgvector:pg16
container_name: omoios_postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app_db
ports:
- "15432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/docker/initdb:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d app_db"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: omoios_redis
ports:
- "16379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
backend:
build:
context: .
dockerfile: backend/Dockerfile.api
container_name: omoios_backend
ports:
- "18000:8000"
environment:
- DATABASE_URL=postgresql+psycopg://postgres:postgres@postgres:5432/app_db
- REDIS_URL=redis://redis:6379
- OMOIOS_ENV=development
- PYTHONUNBUFFERED=1
- RELOAD_MODE=false
- LLM_API_KEY=${LLM_API_KEY:-}
- JWT_SECRET_KEY=${JWT_SECRET_KEY:-dev-secret-change-in-production}
# Disable background loops — they need Daytona/external services
- ORCHESTRATOR_ENABLED=false
- MONITORING_ENABLED=false
- MCP_ENABLED=false
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
# Note: For hot-reload development, use 'just watch' instead.
# This compose file builds clean images — no volume mounts.
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\" || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
worker:
build:
context: .
dockerfile: backend/Dockerfile.worker
container_name: omoios_worker
environment:
- DATABASE_URL=postgresql+psycopg://postgres:postgres@postgres:5432/app_db
- REDIS_URL=redis://redis:6379
- OMOIOS_ENV=development
- PYTHONUNBUFFERED=1
- LLM_API_KEY=${LLM_API_KEY:-}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
backend:
condition: service_started
# Note: For hot-reload development, use 'just watch' instead.
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: dev
container_name: omoios_frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:18000
- NEXT_PUBLIC_WS_URL=ws://localhost:18000/ws
- NEXT_TELEMETRY_DISABLED=1
depends_on:
- backend
# Note: For hot-reload development, mount volumes and use 'just watch'.
restart: unless-stopped
volumes:
postgres_data:
redis_data: