-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (84 loc) · 2.35 KB
/
docker-compose.yml
File metadata and controls
88 lines (84 loc) · 2.35 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
version: "3.9"
services:
frontend:
build:
context: .
dockerfile: Dockerfile
target: node-builder
ports:
- "5173:5173"
volumes:
- ./src/frontend:/app/src/frontend
- /app/node_modules
environment:
- VITE_API_BASE_URL=${VITE_API_BASE_URL:-http://localhost:3001}
- VITE_COGNITO_USER_POOL_ID=${VITE_COGNITO_USER_POOL_ID}
- VITE_COGNITO_CLIENT_ID=${VITE_COGNITO_CLIENT_ID}
command: npm run dev --workspace=src/frontend
networks:
- wellab
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5173"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
backend:
build:
context: .
dockerfile: Dockerfile
target: node-builder
ports:
- "3001:3001"
volumes:
- ./src/backend:/app/src/backend
- /app/node_modules
environment:
- NODE_ENV=${NODE_ENV:-development}
- API_PORT=${API_PORT:-3001}
- AWS_REGION=${AWS_REGION}
- AWS_ACCOUNT_ID=${AWS_ACCOUNT_ID}
- DYNAMODB_TABLE_PREFIX=${DYNAMODB_TABLE_PREFIX}
- DYNAMODB_PUBLICATIONS_TABLE=${DYNAMODB_PUBLICATIONS_TABLE}
- DYNAMODB_PROJECTS_TABLE=${DYNAMODB_PROJECTS_TABLE}
- COGNITO_USER_POOL_ID=${COGNITO_USER_POOL_ID}
- COGNITO_CLIENT_ID=${COGNITO_CLIENT_ID}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- LOG_LEVEL=${LOG_LEVEL:-info}
- CORS_ORIGIN=${CORS_ORIGIN:-http://localhost:5173}
- JWT_SECRET=${JWT_SECRET}
- SESSION_SECRET=${SESSION_SECRET}
command: npm run dev --workspace=src/backend
networks:
- wellab
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
ml-api:
build:
context: .
dockerfile: Dockerfile
target: ml-builder
ports:
- "8000:8000"
volumes:
- ./src/ml:/app/src/ml
environment:
- ML_API_PORT=${ML_API_PORT:-8000}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- LOG_LEVEL=${LOG_LEVEL:-info}
command: python -m uvicorn src.ml.api:app --host 0.0.0.0 --port 8000 --reload
networks:
- wellab
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
wellab:
driver: bridge