forked from pingwu/maca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (69 loc) · 2.22 KB
/
docker-compose.yml
File metadata and controls
72 lines (69 loc) · 2.22 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
services:
# CrewAI Service - AI Processing (Port 8001)
crew-service:
build: ./crew-service
ports:
- "8001:8001"
environment:
- GOOGLE_SHEETS_ID=${GOOGLE_SHEETS_ID}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- GOOGLE_APPLICATION_CREDENTIALS=/app/credentials/gcp-service-account.json
volumes:
- ./credentials:/app/credentials:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
# API Gateway Service - HTTP API (Port 8000)
api-service:
build: ./api-service
ports:
- "8000:8000"
environment:
- CREW_SERVICE_URL=http://crew-service:8001
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- LOG_LEVEL=${LOG_LEVEL}
- LOG_REDACT_INPUTS=${LOG_REDACT_INPUTS}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- GOOGLE_REDIRECT_URI=${GOOGLE_REDIRECT_URI}
- FRONTEND_URL=${FRONTEND_URL}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- JWT_ALGORITHM=${JWT_ALGORITHM}
- JWT_ACCESS_TOKEN_EXPIRE_MINUTES=${JWT_ACCESS_TOKEN_EXPIRE_MINUTES}
- SESSION_COOKIE_SECURE=${SESSION_COOKIE_SECURE}
- SESSION_COOKIE_HTTPONLY=${SESSION_COOKIE_HTTPONLY}
- SESSION_COOKIE_SAMESITE=${SESSION_COOKIE_SAMESITE}
depends_on:
crew-service:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
# Frontend Service - React UI (Port 3000)
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://localhost:8000
# Disable file-watcher polling for faster startup on WSL/volume mounts.
# CRA + polling can slow cold start significantly; hot reload still works.
- CHOKIDAR_USEPOLLING=false
- REACT_APP_ENABLE_BREAKDOWN=false
depends_on:
api-service:
condition: service_healthy
volumes:
- ./frontend/src:/app/src:ro
- ./frontend/public:/app/public:ro
restart: unless-stopped
# Create networks for service communication
networks:
default:
driver: bridge