-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
29 lines (28 loc) · 943 Bytes
/
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
version: "3.8"
services:
main_container:
build:
context: ./docker
args:
- CARLA_VERSION=${CARLA_VERSION:?}
- CUDA_VERSION=${CUDA_VERSION:?}
cache_from:
- ghcr.io/faizansana/intersection-carla-gym:cuda-${CUDA_VERSION:?}-carla-${CARLA_VERSION:?}
image: ghcr.io/faizansana/intersection-carla-gym:cuda-${CUDA_VERSION:?}-carla-${CARLA_VERSION:?}
user: ${FIXUID:?}:${FIXGID:?}
volumes:
- ./:/home/docker/src
runtime: nvidia
depends_on:
- carla_server
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:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['${GPU_ID:?}']
capabilities: [gpu]