mirror of
https://github.com/bdnugget/Pixel-Editor.git
synced 2026-11-07 09:17:36 +00:00
17 lines
607 B
YAML
17 lines
607 B
YAML
services:
|
|
pixeleditor:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
- DISPLAY=${DISPLAY}
|
|
- XAUTHORITY=/tmp/.Xauthority
|
|
volumes:
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
|
- ~/.Xauthority:/tmp/.Xauthority:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro # System Docker socket
|
|
- ~/.docker/desktop/docker.sock:/var/run/docker.sock:ro # Docker Desktop socket (fallback)
|
|
network_mode: host
|
|
privileged: true # Required for some graphics drivers
|
|
# For X11 forwarding to work, run these commands before starting:
|
|
# xhost +local:docker |