-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 1.63 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
version: "3.8"
services:
main_container:
build:
context: ./docker
args:
- CARLA_VERSION=${CARLA_VERSION:?}
- CUDA_VERSION=${CUDA_VERSION:?}
cache_from:
- faizansana/intersection-driving:cuda-${CUDA_VERSION:?}-carla-${CARLA_VERSION:?}
image: faizansana/intersection-driving:cuda-${CUDA_VERSION:?}-carla-${CARLA_VERSION:?}
user: ${FIXUID:?}:${FIXGID:?}
runtime: nvidia
volumes:
- ./:/home/docker/src
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['${GPU_ID_MAIN_CONTAINER:?}']
capabilities: [gpu]
depends_on:
- carla_server
- carla_server_debug
carla_server:
image: "carlasim/carla:${CARLA_VERSION}"
command: /bin/bash -c "SDL_VIDEODRIVER=offscreen && ./CarlaUE4.sh -RenderOffScreen -world-port=2000 -quality-level=${CARLA_QUALITY} -nosound -carla-server -fps=30"
restart: always
deploy:
replicas: ${CARLA_SERVER_REPLICAS:?}
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['${GPU_ID_CARLA_MAIN:?}']
capabilities: [gpu]
carla_server_debug:
image: "carlasim/carla:${CARLA_VERSION}"
command: /bin/bash -c "SDL_VIDEODRIVER=offscreen && ./CarlaUE4.sh -RenderOffScreen -world-port=2000 -quality-level=Epic -nosound -carla-server -fps=30"
restart: always
deploy:
replicas: ${CARLA_DEBUG_SERVER_REPLICAS:?}
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['${GPU_ID_CARLA_DEBUG:?}']
capabilities: [gpu]