-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpodman-compose.yml
More file actions
32 lines (26 loc) · 875 Bytes
/
podman-compose.yml
File metadata and controls
32 lines (26 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3.9"
services:
gui-app:
container_name: sfml-gui
image: localhost/sfml-gui:latest
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=${XAUTHORITY}
- WAYLAND_DISPLAY=${WAYLAND_DISPLAY}
- XDG_RUNTIME_DIR=/run/user/1000
- PULSE_SERVER=unix:/tmp/pulse
# X11 socket, data volume, and PulseAudio socket
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- sfml-data:/comp4-grading
- /run/user/1000/pulse/native:/tmp/pulse
- ${XAUTHORITY}:${XAUTHORITY}:ro # <------ Uncomment if on Linux with X11 or Wayland with XWayland
# GPU
devices:
- /dev/dri:/dev/dri # <------ Uncomment if on Linux
# - /dev/dxg:/dev/dri # <------ Uncomment if on Windows with WSL
network_mode: "host"
tty: true
volumes:
sfml-data:
driver: local