Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.9 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.9 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
# Work-Flow Platform — Docker Compose (Phase 1)
# Usage: docker-compose up --build
# Services: backend (FastAPI+Worker), frontend (Next.js), temporal (dev server)
services:
# ---- Temporal Dev Server ----
temporal:
image: temporalio/auto-setup:1.25.2
ports:
- "7233:7233" # gRPC
- "8080:8080" # Web UI
environment:
- DB=sqlite
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
healthcheck:
test: ["CMD", "tctl", "--address", "temporal:7233", "cluster", "health"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
# ---- Backend: FastAPI + Temporal Worker + LangGraph ----
backend:
build:
context: .
dockerfile: Dockerfile.backend
ports:
- "8000:8000"
volumes:
- backend-data:/data
- ./backend/workflow/templates:/app/workflow/templates:ro
environment:
- DATABASE_URL=sqlite+aiosqlite:////data/workflow.db
- TEMPORAL_ADDRESS=temporal:7233
- API_HOST=0.0.0.0
- API_PORT=8000
- API_BASE_URL=http://backend:8000
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
- LOG_DIR=/data/logs
# CCCC (Phase 2) — uncomment when CCCC container added
# - CCCC_DAEMON_ADDR=tcp://cccc:9765
# - CCCC_HOME=/cccc-data
depends_on:
temporal:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 15s
timeout: 5s
retries: 5
start_period: 15s
restart: unless-stopped
# ---- Frontend: Next.js ----
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
args:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:8000}
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
volumes:
backend-data: