-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose-nvidia.yml
42 lines (42 loc) · 1.17 KB
/
docker-compose-nvidia.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
# MOV.AI Flow™ configuration of Rviz and IGN Gazebo with NVidia support
#
# WARNING:
# This configuration is for local development. Do not use it in a production deployment.
#
# This configuration supports basic configuration using environment variables or an .env file
# The following variables are supported:
#
# Feel free to modify this file to suit your needs.
---
version: "3.9"
services:
simulator:
extends:
file: docker-compose.yml
service: simulator
environment:
NVIDIA_VISIBLE_DEVICES: ${NVIDIA_VISIBLE_DEVICES:-all}
NVIDIA_DRIVER_CAPABILITIES: ${NVIDIA_DRIVER_CAPABILITIES:-graphics}
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: ["gpu"]
ros-tools:
extends:
file: docker-compose.yml
service: ros-tools
environment:
NVIDIA_VISIBLE_DEVICES: ${NVIDIA_VISIBLE_DEVICES:-all}
NVIDIA_DRIVER_CAPABILITIES: ${NVIDIA_DRIVER_CAPABILITIES:-graphics}
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: ["gpu"]
networks:
private:
external:
name: flow_private