-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
73 lines (70 loc) · 1.86 KB
/
docker-compose.yaml
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
services:
frontend:
container_name: dweam-frontend
build:
context: ./dweam_web
dockerfile: Dockerfile
target: development
# target: runner
image: dweam_frontend:local
ports:
- "127.0.0.1:4321:4321"
# volumes:
# - ./dweam_web:/app
# - /app/node_modules
environment:
- INTERNAL_BACKEND_URL=http://backend:8080
# command: npm run dev --host 0.0.0.0
backend:
container_name: dweam-backend
build:
context: .
dockerfile: Dockerfile.server
# TODO is this shmem thing right
shm_size: 2gb
image: dweam_backend:local
environment:
- INTERNAL_TURN_URL=turnserver:3478
- TURN_SECRET_KEY=${TURN_SECRET_KEY}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- CACHE_DIR=/root/.cache-data
- JAX_COMPILATION_CACHE_DIR=/root/.cache-data/xla_cache
volumes:
- ./.cache-data:/root/.cache-data
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# ulimits:
# memlock:
# soft: -1
# hard: -1
# stack:
# soft: 67108864
# hard: 67108864
turnserver:
container_name: dweam-turnserver
image: coturn/coturn:latest
ports:
- "3478:3478"
- "3478:3478/udp"
- "5349:5349"
- "5349:5349/udp"
# - "49152-65535:49152-65535/udp"
- "50000-50010:50000-50010/udp"
# use network_mode: host when running rootful docker on linux
# network_mode: host
volumes:
- ./turnserver.conf:/etc/turnserver.conf
command: >
-c /etc/turnserver.conf
# -e DETECT_EXTERNAL_IP=yes \
-e DETECT_RELAY_IP=yes \
--min-port=50000 \
--max-port=50010 \
--use-auth-secret \
--static-auth-secret=${TURN_SECRET_KEY}