mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
## Description **What issue are you solving (or what feature are you adding) and how are you doing it?** We start the container using supervisord, which is limiting as the user has no way of telling the container what game to run. So, the idea is to run like so: `docker run... ghcr.io/netrisdotme/netris/server:<tag> netris-proton /game/yourgame.exe` Co-authored by @djpremier
31 lines
844 B
Plaintext
31 lines
844 B
Plaintext
[supervisord]
|
|
user=netris
|
|
nodaemon=true
|
|
loglevel=info
|
|
logfile=/tmp/supervisord.log
|
|
pidfile=/tmp/supervisord.pid
|
|
|
|
[include]
|
|
files = /etc/supervisord.d/*.ini
|
|
|
|
[program:entrypoint]
|
|
command=/etc/entrypoint.sh
|
|
logfile=/tmp/entrypoint.log
|
|
pidfile=/tmp/entrypoint.pid
|
|
stopsignal=INT
|
|
autostart=true
|
|
autorestart=true
|
|
redirect_stderr=true
|
|
priority=1
|
|
|
|
[program:pulseaudio]
|
|
user=netris
|
|
command=bash -c "until [ -S \"/tmp/.X11-unix/X${DISPLAY/:/}\" ]; do sleep 1; done; sudo /usr/bin/pulseaudio -k >/dev/null 2>&1 || sudo /usr/bin/pulseaudio --system --verbose --log-target=stderr --realtime=true --disallow-exit -L 'module-native-protocol-tcp auth-ip-acl=127.0.0.0/8 port=4713 auth-anonymous=1'"
|
|
environment=DISPLAY=":0"
|
|
logfile=/tmp/pulseaudio.log
|
|
pidfile=/tmp/pulseaudio.pid
|
|
stopsignal=INT
|
|
autostart=true
|
|
autorestart=true
|
|
redirect_stderr=true
|
|
priority=10 |