-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
42 lines (40 loc) · 1.17 KB
/
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
# Base format file for running auto generation script (Do not modify)
version: "3.9"
services:
# SITL (PX4/ROS2/Gazebo) simulator
px4_gz_multidrone:
container_name: drones
hostname: drones
image: px4_gz_multidrone:latest
build:
context: .
dockerfile: Dockerfile
# set the host uid/gid information as environmental variables
environment:
- DISPLAY=${DISPLAY}
- HOST_UID=${HOST_UID}
- HOST_GID=${HOST_GID}
# # Purdue location (lat, lon, alt) - reference point
# - PX4_HOME_LAT=40.41537099446224
# - PX4_HOME_LON=-86.93289541090424
# - PX4_HOME_ALT=35
# # GZ world
# - PX4_GZ_WORLD=default
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- ./script:/home/user/script:rw
- ./work:/home/user/work:rw
# command: terminator --geometry=800x500+800+0 -e "python3 bin/px4_multirun.py; read -p 'press enter'"
tty: true
stdin_open: true
privileged: true
# sysctls:
# - net.ipv6.conf.all.disable_ipv6=0
ipc: host
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]