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
41 lines (40 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.08 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
services:
content-generator:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
- ./generated_content:/app/generated_content
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY:-demo-key}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-demo-key}
- SERPER_API_KEY=${SERPER_API_KEY:-demo-key}
- LLM_MODEL=${LLM_MODEL:-gpt-4o-mini}
- ANTHROPIC_MODEL=${ANTHROPIC_MODEL:-claude-3-haiku-20240307}
- DEMO_MODE=${DEMO_MODE:-true}
- CORS_ALLOW_ORIGINS=${CORS_ALLOW_ORIGINS:-http://localhost:3000}
- ENVIRONMENT=${ENVIRONMENT:-production}
env_file:
- .env
stdin_open: true
tty: true
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 512M
command: python -m uvicorn my_mas.web_api:app --host 0.0.0.0 --port 8000
# Frontend service
frontend:
build: ./frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- REACT_APP_API_URL=http://localhost:8000
depends_on:
- content-generator