Spaces:
Paused
Paused
Create supervisord.conf
Browse files- supervisord.conf +62 -0
supervisord.conf
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
nodaemon=true
|
| 3 |
+
loglevel=info
|
| 4 |
+
pidfile=/tmp/supervisord.pid
|
| 5 |
+
|
| 6 |
+
[program:xvfb]
|
| 7 |
+
command=/usr/bin/Xvfb :1 -screen 0 1920x1080x24 -ac +extension GLX +render -noreset
|
| 8 |
+
autorestart=true
|
| 9 |
+
startsecs=3
|
| 10 |
+
priority=10
|
| 11 |
+
|
| 12 |
+
[program:xfce]
|
| 13 |
+
command=/usr/bin/startxfce4
|
| 14 |
+
environment=DISPLAY=":1",HOME="/home/user",USER="user"
|
| 15 |
+
user=user
|
| 16 |
+
autorestart=true
|
| 17 |
+
startsecs=5
|
| 18 |
+
priority=20
|
| 19 |
+
|
| 20 |
+
[program:x11vnc]
|
| 21 |
+
command=/usr/bin/x11vnc -display :1 -forever -shared -rfbport 5900 -nopw -xkb
|
| 22 |
+
autorestart=true
|
| 23 |
+
startsecs=5
|
| 24 |
+
priority=30
|
| 25 |
+
|
| 26 |
+
[program:novnc]
|
| 27 |
+
command=/usr/share/novnc/utils/novnc_proxy --vnc localhost:5900 --listen 6080
|
| 28 |
+
autorestart=true
|
| 29 |
+
startsecs=5
|
| 30 |
+
priority=40
|
| 31 |
+
|
| 32 |
+
[program:vscode]
|
| 33 |
+
command=/usr/bin/code-server --bind-addr 0.0.0.0:13337 --auth password --disable-telemetry --user-data-dir /home/user/.local/share/code-server /app
|
| 34 |
+
environment=HOME="/home/user",PASSWORD="%(ENV_VSCODE_PASSWORD)s"
|
| 35 |
+
user=user
|
| 36 |
+
autorestart=true
|
| 37 |
+
startsecs=5
|
| 38 |
+
priority=50
|
| 39 |
+
|
| 40 |
+
[program:jupyter]
|
| 41 |
+
command=/usr/local/bin/jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --ServerApp.base_url=/jupyter --ServerApp.token=%(ENV_JUPYTER_TOKEN)s
|
| 42 |
+
environment=HOME="/home/user"
|
| 43 |
+
user=user
|
| 44 |
+
directory=/app
|
| 45 |
+
autorestart=true
|
| 46 |
+
startsecs=5
|
| 47 |
+
priority=60
|
| 48 |
+
|
| 49 |
+
[program:api]
|
| 50 |
+
command=/usr/local/bin/uvicorn app:app --host 0.0.0.0 --port 8000
|
| 51 |
+
environment=HOME="/home/user"
|
| 52 |
+
user=user
|
| 53 |
+
directory=/app
|
| 54 |
+
autorestart=true
|
| 55 |
+
startsecs=3
|
| 56 |
+
priority=70
|
| 57 |
+
|
| 58 |
+
[program:nginx]
|
| 59 |
+
command=/usr/sbin/nginx -g "daemon off;"
|
| 60 |
+
autorestart=true
|
| 61 |
+
startsecs=3
|
| 62 |
+
priority=100
|