hisham-cmd commited on
Commit
1ef5eb9
·
verified ·
1 Parent(s): 04f985b

Upload supervisord.conf

Browse files
Files changed (1) hide show
  1. supervisord.conf +18 -0
supervisord.conf ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [supervisord]
2
+ nodaemon=true
3
+ user=root
4
+
5
+ [program:postgresql]
6
+ command=su - postgres -c "/usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/data -c config_file=/etc/postgresql/15/main/postgresql.conf"
7
+ autorestart=true
8
+ priority=10
9
+
10
+ [program:fastapi]
11
+ command=uvicorn main:app --host 0.0.0.0 --port 7860
12
+ directory=/app
13
+ autorestart=true
14
+ priority=20
15
+ stdout_logfile=/dev/stdout
16
+ stdout_logfile_maxbytes=0
17
+ stderr_logfile=/dev/stderr
18
+ stderr_logfile_maxbytes=0