34 líneas
860 B
YAML
34 líneas
860 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
discord:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: discord-app
|
|
image: discord-x11:latest
|
|
network_mode: host
|
|
environment:
|
|
- DISPLAY=${DISPLAY}
|
|
- QT_X11_NO_MITSHM=1
|
|
- PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native
|
|
volumes:
|
|
# X11 socket for GUI
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
|
# Discord config persistence
|
|
- discord-config:/home/discord/.config/discord
|
|
# PulseAudio for sound
|
|
- ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native
|
|
- ~/.config/pulse/cookie:/home/discord/.config/pulse/cookie:ro
|
|
devices:
|
|
# Video devices for camera support
|
|
- /dev/dri:/dev/dri
|
|
ipc: host
|
|
security_opt:
|
|
- seccomp:unconfined
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
discord-config:
|
|
driver: local
|