ashwinR commited on
Commit
da725d6
·
1 Parent(s): 70f7a1b

Update supervisor.conf

Browse files
Files changed (1) hide show
  1. supervisor.conf +9 -14
supervisor.conf CHANGED
@@ -1,22 +1,17 @@
1
  [supervisord]
2
  nodaemon=true
3
 
4
- [program:redis]
5
- command=redis-server # command to run redis service
 
6
  autorestart=true
7
- stderr_logfile=/dev/stdout
8
- stderr_logfile_maxbytes = 0
9
- stdout_logfile=/dev/stdout
10
- stdout_logfile_maxbytes = 0
11
 
 
 
 
 
12
 
13
- [program:postgres]
14
- command=/usr/lib/postgresql/12/bin/postgres -D /var/lib/postgresql/12/main/ -c config_file=/etc/postgresql/12/main/postgresql.conf # command to run postgres service
15
  autostart=true
16
  autorestart=true
17
- stderr_logfile=/dev/stdout
18
- stderr_logfile_maxbytes = 0
19
- stdout_logfile=/dev/stdout
20
- stdout_logfile_maxbytes = 0
21
- user=postadmin
22
- environment=HOME="/var/lib/postgresql",USER="postadmin"
 
1
  [supervisord]
2
  nodaemon=true
3
 
4
+ [program:postgresql]
5
+ command=/usr/lib/postgresql/13/bin/postgres -D /var/lib/postgresql/13/main -c config_file=/etc/postgresql/13/main/postgresql.conf
6
+ autostart=true
7
  autorestart=true
 
 
 
 
8
 
9
+ [program:redis]
10
+ command=redis-server
11
+ autostart=true
12
+ autorestart=true
13
 
14
+ [program:app]
15
+ command=uvicorn app:app --host 0.0.0.0 --port 80
16
  autostart=true
17
  autorestart=true