forked from Tom-Notch/ROS-Repository-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (39 loc) · 1.25 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
services:
default:
build:
dockerfile: ./docker/${IMAGE_TAG}/Dockerfile
x-bake:
contexts:
home-folder-config: ./docker/build-context/home-folder-config
platforms:
- linux/amd64 # for PC
- linux/arm64 # for arm64 platforms
privileged: true
tags:
- ${DOCKER_USER}/${IMAGE_NAME}:${IMAGE_TAG}
image: ${DOCKER_USER}/${IMAGE_NAME}:${IMAGE_TAG}
pull_policy: missing
container_name: ${CONTAINER_NAME}
privileged: true
hostname: ${HOSTNAME}
network_mode: host
ipc: host
pid: host
ulimits:
core: -1
group_add:
- video
- audio
environment: # -e
DISPLAY: ${DISPLAY}
QT_X11_NO_MITSHM: 1
XAUTHORITY: ${XAUTH}
volumes: # -v
- /var/lib/systemd/coredump/:/cores
- /tmp/.X11-unix/:/tmp/.X11-unix/:rw
- ${XAUTH}:${XAUTH}
- .:${CONTAINER_HOME_FOLDER}/${CODE_FOLDER}
working_dir: ${CONTAINER_HOME_FOLDER}/${CODE_FOLDER}
stdin_open: true # for -it
tty: true # for -it
# command: /bin/zsh