forked from TIL-24/til-24-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
156 lines (156 loc) · 4.89 KB
/
docker-compose.yml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
services:
til-competition:
build: ./
image: til_competition:v0.0.1
environment:
- TEAM_NAME=${TEAM_NAME}
container_name: til-competition
ports:
- ${COMPETITION_SERVER_PORT}:${COMPETITION_SERVER_PORT}
ulimits:
memlock: -1 # set upper limit for how much memory is locked for the container (-1 means lock as much as the container uses)
shm_size: 32gb
command: uvicorn test_competition_server:app --host 0.0.0.0 --port ${COMPETITION_SERVER_PORT}
healthcheck:
test: curl -f http://localhost:${COMPETITION_SERVER_PORT}/health || exit 1
interval: 5s
timeout: 30s
retries: 5
start_period: 3s
til-main:
build: main/
image: til_main:v0.0.1
environment:
- COMPETITION_SERVER_IP=${COMPETITION_SERVER_IP}
- COMPETITION_SERVER_PORT=${COMPETITION_SERVER_PORT}
- TEAM_NAME=${TEAM_NAME}
- LOCAL_IP=${LOCAL_IP}
container_name: til-main
ulimits:
memlock: -1 # set upper limit for how much memory is locked for the container (-1 means lock as much as the container uses)
shm_size: 32gb # set upper limit for how much shared memory container can use
depends_on:
til-competition:
condition: service_healthy
restart: true
til-asr:
condition: service_healthy
restart: true
til-nlp:
condition: service_healthy
restart: true
til-autonomy:
condition: service_healthy
restart: true
til-vlm:
condition: service_healthy
restart: true
command: ["python", "participant_server.py"]
til-asr:
build: asr/
image: til_asr:v0.0.1
container_name: til-asr
environment:
NVIDIA_VISIBLE_DEVICES: 0
CUDA_VISIBLE_DEVICES: 0
ports:
- 5001:5001
ulimits:
memlock: -1 # set upper limit for how much memory is locked for the container (-1 means lock as much as the container uses)
shm_size: 32gb # set upper limit for how much shared memory container can use
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: ["uvicorn", "api_service:app", "--host", "0.0.0.0", "--port", "5001"]
healthcheck:
test: curl -f http://localhost:5001/health || exit 1
interval: 5s
timeout: 30s
retries: 5
start_period: 3s
til-nlp:
build: nlp/
image: til_nlp:v0.0.1
container_name: til-nlp
environment:
NVIDIA_VISIBLE_DEVICES: 0
CUDA_VISIBLE_DEVICES: 0
ports:
- 5002:5002
ulimits:
memlock: -1 # set upper limit for how much memory is locked for the container (-1 means lock as much as the container uses)
shm_size: 32gb # set upper limit for how much shared memory container can use
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: ["uvicorn", "api_service:app", "--host", "0.0.0.0", "--port", "5002"]
healthcheck:
test: curl -f http://localhost:5002/health || exit 1
interval: 5s
timeout: 30s
retries: 5
start_period: 3s
til-autonomy:
build: autonomy/
image: til_autonomy:v0.0.1
stdin_open: true
tty: true
environment:
- COMPETITION_SERVER_IP=${COMPETITION_SERVER_IP}
- TEAM_NAME=${TEAM_NAME}
- ROBOT_SN=${ROBOT_SN}
- ROBOT_IP=${ROBOT_IP}
- LOCAL_IP=${LOCAL_IP}
- USE_ROBOT=${USE_ROBOT}
container_name: til-autonomy
ports:
- 5003:5003
- 10100-10500:10100-10500/udp
ulimits:
memlock: -1 # set upper limit for how much memory is locked for the container (-1 means lock as much as the container uses)
shm_size: 32gb # set upper limit for how much shared memory container can use
command: ["uvicorn", "autonomy:app", "--host", "0.0.0.0", "--port", "5003"]
depends_on:
til-competition:
condition: service_healthy
restart: true
healthcheck:
test: curl -f http://localhost:5003/health || exit 1
interval: 5s
timeout: 30s
retries: 5
start_period: 3s
til-vlm:
build: vlm/
image: til_vl:v0.0.1
container_name: til-vlm
environment:
NVIDIA_VISIBLE_DEVICES: 0
CUDA_VISIBLE_DEVICES: 0
ports:
- 5004:5004
ulimits:
memlock: -1 # set upper limit for how much memory is locked for the container (-1 means lock as much as the container uses)
shm_size: 32gb # set upper limit for how much shared memory container can use
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: ["uvicorn", "api_service:app", "--host", "0.0.0.0", "--port", "5004"]
healthcheck:
test: curl -f http://localhost:5004/health || exit 1
interval: 5s
timeout: 30s
retries: 5
start_period: 3s