55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
|
|
[supervisord]
|
||
|
|
nodaemon=true
|
||
|
|
user=root
|
||
|
|
logfile=/app/data/supervisord.log
|
||
|
|
pidfile=/tmp/supervisord.pid
|
||
|
|
|
||
|
|
[unix_http_server]
|
||
|
|
file=/tmp/supervisor.sock
|
||
|
|
chmod=0700
|
||
|
|
|
||
|
|
[rpcinterface:supervisor]
|
||
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||
|
|
|
||
|
|
[supervisorctl]
|
||
|
|
serverurl=unix:///tmp/supervisor.sock
|
||
|
|
|
||
|
|
[program:xvfb]
|
||
|
|
command=Xvfb :99 -screen 0 %(ENV_SCREEN_WIDTH)sx%(ENV_SCREEN_HEIGHT)sx%(ENV_SCREEN_DEPTH)s
|
||
|
|
priority=10
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/app/data/xvfb.log
|
||
|
|
stderr_logfile=/app/data/xvfb_err.log
|
||
|
|
|
||
|
|
[program:wm]
|
||
|
|
command=/app/scripts/start_wm.sh
|
||
|
|
environment=DISPLAY=":99"
|
||
|
|
priority=20
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/app/data/wm.log
|
||
|
|
stderr_logfile=/app/data/wm_err.log
|
||
|
|
|
||
|
|
[program:x11vnc]
|
||
|
|
command=/app/scripts/start_x11vnc.sh
|
||
|
|
environment=DISPLAY=":99",VNC_PORT="%(ENV_VNC_PORT)s",VNC_VIEW_ONLY="%(ENV_VNC_VIEW_ONLY)s"
|
||
|
|
priority=30
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/app/data/x11vnc.log
|
||
|
|
stderr_logfile=/app/data/x11vnc_err.log
|
||
|
|
|
||
|
|
[program:novnc]
|
||
|
|
command=websockify --web /opt/novnc %(ENV_NOVNC_PORT)s localhost:%(ENV_VNC_PORT)s
|
||
|
|
priority=40
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/app/data/novnc.log
|
||
|
|
stderr_logfile=/app/data/novnc_err.log
|
||
|
|
|
||
|
|
[program:api]
|
||
|
|
command=python3 -m uvicorn app.main:app --host 0.0.0.0 --port %(ENV_API_PORT)s
|
||
|
|
directory=/app
|
||
|
|
environment=DISPLAY=":99",PYTHONUNBUFFERED="1"
|
||
|
|
priority=50
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/app/data/api.log
|
||
|
|
stderr_logfile=/app/data/api_err.log
|