forked from games-on-whales/gow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (71 loc) · 2.42 KB
/
docker-compose.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3"
services:
##########################################
# There's a lot going on in this file; it's normal to get lost with all the
# options and variables
#
# Before diving in, make sure to take a look at the documentation. In
# particular, it will be helpful to read the components-overview section
# (https://games-on-whales.github.io/gow/components-overview.html)
# in order to get a view on how the various components are tied together.
###################
####################
# Sunshine is the heart of the streaming setup; it takes your desktop and
# encodes it for delivery over the network
sunshine:
image: ghcr.io/games-on-whales/sunshine:edge
# build:
# context: ./images/sunshine
# args:
# BASE_IMAGE: ${BUILD_BASE_IMAGE}
# BASE_APP_IMAGE: ${BUILD_BASE_APP_IMAGE}
runtime: ${DOCKER_RUNTIME}
ports:
- 47984-47990:47984-47990/tcp
- 48010:48010
- 47998-48000:47998-48000/udp
privileged: true
volumes:
# Xorg socket in order to get the screen
- ${XORG_SOCKET}:/tmp/.X11-unix
# Pulse socket, audio
- ${PULSE_SOCKET_HOST}:${PULSE_SOCKET_GUEST}
# Home directory: sunshine state + configs
- ${local_state}/:/home/retro/
# OPTIONAL: host dbus used by avahi in order to publish Sunshine for auto network discovery
- ${DBUS}:/run/dbus:ro
deploy:
resources:
limits:
cpus: '1'
memory: 1G
reservations:
cpus: '0.2'
memory: 256M
ipc: ${SHARED_IPC} # Needed for MIT-SHM, removing this should cause a performance hit see https://github.com/jessfraz/dockerfiles/issues/359
env_file:
- config/common.env
- config/xorg.env
# run-gow: gpu_env
environment:
LOG_LEVEL: ${SUNSHINE_LOG_LEVEL}
GOW_REQUIRED_DEVICES: /dev/uinput /dev/input/event* /dev/dri/*
# Username and password for the web-ui at https://xxx.xxx.xxx.xxx:47990
SUNSHINE_USER: ${SUNSHINE_USER}
SUNSHINE_PASS: ${SUNSHINE_PASS}
XDG_RUNTIME_DIR: /tmp/.X11-unix
VIRTUAL_PORT: ${VIRTUAL_PORT}
VIRTUAL_PROTO: ${VIRTUAL_PROTO}
VIRTUAL_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
NETWORK: ${NETWORK}
NETWORK_ACCESS: ${NETWORK_ACCESS}
networks:
- external
volumes:
udev:
networks:
external:
external: true
name: ${NETWORK}