2022-04-05 18:07:14 +02:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
vdi:
|
|
|
|
build:
|
|
|
|
args:
|
|
|
|
- DOCKER_BUILD_DIR=docker/x2go/xfce-debian
|
|
|
|
context: ../..
|
|
|
|
dockerfile: docker/x2go/xfce-debian/Dockerfile
|
|
|
|
cap_add:
|
|
|
|
- IPC_LOCK # ecryptfs
|
|
|
|
- NET_ADMIN # iptables
|
|
|
|
- NET_RAW # iptables
|
|
|
|
- SYS_ADMIN # ecryptfs
|
|
|
|
environment:
|
2022-04-10 04:21:44 +02:00
|
|
|
- DEBUG=${VDI_DEBUG}
|
|
|
|
- ECRYPTERS=${VDI_ECRYPTERS}
|
2022-04-05 18:07:14 +02:00
|
|
|
- LANG=${VDI_LANG}
|
|
|
|
- SUDOERS=${VDI_SUDOERS}
|
|
|
|
- TZ=${VDI_TZ}
|
|
|
|
- USERS=${VDI_USERS}
|
|
|
|
ports:
|
|
|
|
- "${VDI_PORT}:22"
|
|
|
|
restart: unless-stopped
|
|
|
|
security_opt:
|
|
|
|
- apparmor=unconfined # ecryptfs
|
|
|
|
- seccomp=unconfined # ecryptfs
|
|
|
|
tty: true
|
|
|
|
volumes:
|
2022-04-10 04:21:44 +02:00
|
|
|
- home:/home:delegated
|
|
|
|
- shared:/shared:cached
|
|
|
|
- shm:/dev/shm:delegated
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
home:
|
|
|
|
shared:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
device: /mnt/shared
|
|
|
|
o: bind
|
|
|
|
shm:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: tmpfs
|
|
|
|
device: tmpfs
|
|
|
|
o: mode=1777,size=2147483648 # 2GB
|