Spaces:
Paused
Paused
Create supervisord.conf
Browse files- supervisord.conf +30 -0
supervisord.conf
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
nodaemon=true
|
| 3 |
+
user=user
|
| 4 |
+
logfile=/tmp/supervisord.log
|
| 5 |
+
pidfile=/tmp/supervisord.pid
|
| 6 |
+
|
| 7 |
+
[program:fastapi]
|
| 8 |
+
command=uvicorn app:app --host 0.0.0.0 --port 8000
|
| 9 |
+
directory=/app
|
| 10 |
+
user=user
|
| 11 |
+
autostart=true
|
| 12 |
+
autorestart=true
|
| 13 |
+
redirect_stderr=true
|
| 14 |
+
stdout_logfile=/tmp/fastapi.log
|
| 15 |
+
|
| 16 |
+
[program:code-server]
|
| 17 |
+
command=code-server --bind-addr 0.0.0.0:7860 --auth none --disable-telemetry /home/user/workspace
|
| 18 |
+
user=user
|
| 19 |
+
autostart=true
|
| 20 |
+
autorestart=true
|
| 21 |
+
redirect_stderr=true
|
| 22 |
+
stdout_logfile=/tmp/code-server.log
|
| 23 |
+
|
| 24 |
+
[program:nginx]
|
| 25 |
+
command=/usr/local/bin/nginx-proxy
|
| 26 |
+
user=user
|
| 27 |
+
autostart=true
|
| 28 |
+
autorestart=true
|
| 29 |
+
redirect_stderr=true
|
| 30 |
+
stdout_logfile=/tmp/nginx.log
|