2024-11-18 00:06:21 +01:00
|
|
|
# Rx3-Docker/X11-Pulse Docker Image
|
2024-08-23 11:44:27 +02:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2024-11-18 00:06:21 +01:00
|
|
|
name: ${XP_IMG_NAME}
|
2024-08-23 11:44:27 +02:00
|
|
|
|
|
|
|
services:
|
2024-11-18 00:06:21 +01:00
|
|
|
|
|
|
|
x11-pulse:
|
|
|
|
container_name: ${XP_HOST_NAME}
|
|
|
|
hostname: ${XP_HOST_NAME}
|
2024-08-25 00:47:59 +02:00
|
|
|
|
2024-11-18 00:06:21 +01:00
|
|
|
image: ${XP_IMG_URL}
|
2024-08-23 11:44:27 +02:00
|
|
|
|
|
|
|
build:
|
2024-11-18 00:06:21 +01:00
|
|
|
context: .
|
2024-08-23 11:44:27 +02:00
|
|
|
args:
|
2024-11-18 00:06:21 +01:00
|
|
|
IMG_NAME: ${XP_IMG_NAME}
|
|
|
|
IMG_NAME_FULL: ${XP_IMG_NAME_FULL}
|
|
|
|
IMG_VERSION: ${XP_IMG_VERSION}
|
|
|
|
IMG_MAINTAINER: ${XP_IMG_MAINTAINER}
|
|
|
|
IMG_FROM_URL: ${XP_IMG_FROM_URL}
|
2024-08-23 11:44:27 +02:00
|
|
|
|
2024-11-18 00:06:21 +01:00
|
|
|
restart: unless-stopped
|
2024-08-23 11:44:27 +02:00
|
|
|
|
|
|
|
environment:
|
2024-11-18 00:06:21 +01:00
|
|
|
DISPLAY: ":0"
|
2024-08-23 11:44:27 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- home_dir:/home
|
2024-11-18 00:06:21 +01:00
|
|
|
- type: bind
|
|
|
|
source: /tmp/.X11-unix/X0
|
|
|
|
target: /tmp/.X11-unix/X0
|
|
|
|
- type: bind
|
|
|
|
source: /run/user/${USER_ID}/pulse
|
|
|
|
target: /run/user/${USER_ID}/pulse
|
|
|
|
- type: bind
|
|
|
|
source: "${APPL_DIR}"
|
|
|
|
target: "${APPL_DIR}"
|
2024-08-23 17:42:22 +02:00
|
|
|
|
|
|
|
networks:
|
2024-11-18 00:06:21 +01:00
|
|
|
- ${APPL_NETWORK}
|
2024-08-23 17:42:22 +02:00
|
|
|
|
2024-08-23 11:44:27 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
home_dir:
|
|
|
|
external: true
|
2024-08-23 17:42:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
internet:
|
|
|
|
driver: bridge
|
|
|
|
internal: false # Allow internet access
|
|
|
|
|
|
|
|
no-internet:
|
|
|
|
driver: bridge
|
|
|
|
internal: true # Block internet access
|