proti0070 commited on
Commit
29ae51a
·
verified ·
1 Parent(s): 7115ffc

Create supervisord.conf

Browse files
Files changed (1) hide show
  1. supervisord.conf +26 -0
supervisord.conf ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [supervisord]
2
+ nodaemon=true
3
+ logfile=/var/log/supervisord.log
4
+
5
+ [program:mongodb]
6
+ command=mongod --bind_ip 127.0.0.1 --port 27017 --dbpath /data/db
7
+ autostart=true
8
+ autorestart=true
9
+ stdout_logfile=/var/log/mongodb.log
10
+ stderr_logfile=/var/log/mongodb_err.log
11
+
12
+ [program:minio]
13
+ command=minio server /data/minio --address 127.0.0.1:9000
14
+ autostart=true
15
+ autorestart=true
16
+ environment=MINIO_ROOT_USER="admin",MINIO_ROOT_PASSWORD="password123"
17
+ stdout_logfile=/var/log/minio.log
18
+ stderr_logfile=/var/log/minio_err.log
19
+
20
+ [program:fastapi]
21
+ command=uvicorn app:app --host 0.0.0.0 --port 7860
22
+ directory=/app
23
+ autostart=true
24
+ autorestart=true
25
+ stdout_logfile=/var/log/fastapi.log
26
+ stderr_logfile=/var/log/fastapi_err.log