-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 930 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 930 Bytes
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
version: "3.8"
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8000:8000"
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- GPU_RENDER_URL=http://gpu-renderer:8100
- MJSIM_DB_PATH=/data/simgen.db
volumes:
- db-data:/data
- video-cache:/tmp/mjsim_videos
depends_on:
- gpu-renderer
restart: unless-stopped
frontend:
build:
context: frontend
args:
NEXT_PUBLIC_API_URL: http://localhost:8000
ports:
- "3000:3000"
depends_on:
- backend
restart: unless-stopped
gpu-renderer:
build:
context: gpu-renderer
ports:
- "8100:8100"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped
volumes:
db-data:
video-cache: