x11-pulse-mga9/compose.yaml
Arnaud G. GIBERT 77bb7d9185 - Update to rx3/base-mga9:1.2.6 image,
- Variabilization of external server ports in env & compose file,
- Now use docker_tools for .env building.
2024-10-07 15:19:00 +02:00

54 lines
1.1 KiB
YAML

# Rx3 X11 Pulse Mageia-9 Docker Image
#-------------------------------------------------------------------------------
name: ${IMG_NAME}
services:
default:
container_name: ${IMG_NAME}
image: ${IMG_URL}
build:
context: .
args:
- IMG_NAME=${IMG_NAME}
- IMG_FULL_NAME=${IMG_FULL_NAME}
- IMG_VERSION=${IMG_VERSION}
- IMG_MAINTAINER=${IMG_MAINTAINER}
restart: unless-stopped
environment:
DISPLAY: ":0"
volumes:
- home_dir:/home
- 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}"
networks:
- ${APPL_NETWORK}
volumes:
home_dir:
external: true
networks:
internet:
driver: bridge
internal: false # Allow internet access
no-internet:
driver: bridge
internal: true # Block internet access