26 lines
800 B
YAML
26 lines
800 B
YAML
version: '2'
|
|
|
|
services:
|
|
cool-retro-term:
|
|
image: andrey01/cool-retro-term
|
|
network_mode: bridge
|
|
devices:
|
|
- /dev/dri
|
|
# - /dev/video0
|
|
volumes:
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
|
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- $HOME:/home/$USER
|
|
- /etc/machine-id:/etc/machine-id:ro
|
|
environment:
|
|
- DISPLAY=unix$DISPLAY
|
|
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
|
|
- REALUSER=$USER
|
|
shm_size: 16M
|
|
# For the mplayer to work, you need to share IPC between host and the container
|
|
# otherwise you gonna get errors like:
|
|
# - X11 error: BadAccess (attempt to access private resource denied)
|
|
# - X11 error: BadShmSeg (invalid shared segment parameter)
|
|
ipc: host
|