Spaces:
Build error
Build error
Create supervisord.conf
Browse files- supervisord.conf +43 -0
supervisord.conf
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
nodaemon=true
|
| 3 |
+
user=root
|
| 4 |
+
|
| 5 |
+
[program:redis]
|
| 6 |
+
command=redis-server --port 6379
|
| 7 |
+
autostart=true
|
| 8 |
+
autorestart=true
|
| 9 |
+
|
| 10 |
+
[program:mongodb]
|
| 11 |
+
command=mongod --dbpath /var/lib/mongodb
|
| 12 |
+
autostart=true
|
| 13 |
+
autorestart=true
|
| 14 |
+
|
| 15 |
+
[program:postgres]
|
| 16 |
+
command=/usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/15/main -c config_file=/etc/postgresql/15/main/postgresql.conf
|
| 17 |
+
autostart=true
|
| 18 |
+
autorestart=true
|
| 19 |
+
user=postgres
|
| 20 |
+
|
| 21 |
+
[program:backend]
|
| 22 |
+
command=uvicorn app.main:app --host 0.0.0.0 --port 8000
|
| 23 |
+
directory=/app/backend
|
| 24 |
+
autostart=true
|
| 25 |
+
autorestart=true
|
| 26 |
+
|
| 27 |
+
[program:celery_worker]
|
| 28 |
+
command=celery -A app.tasks.celery_app.celery_app worker --loglevel=info -P solo
|
| 29 |
+
directory=/app/backend
|
| 30 |
+
autostart=true
|
| 31 |
+
autorestart=true
|
| 32 |
+
|
| 33 |
+
[program:celery_beat]
|
| 34 |
+
command=celery -A app.tasks.celery_app.celery_app beat --loglevel=info
|
| 35 |
+
directory=/app/backend
|
| 36 |
+
autostart=true
|
| 37 |
+
autorestart=true
|
| 38 |
+
|
| 39 |
+
[program:frontend]
|
| 40 |
+
command=npm start
|
| 41 |
+
directory=/app/frontend
|
| 42 |
+
autostart=true
|
| 43 |
+
autorestart=true
|