Spaces:
Build error
Build error
Update supervisor.conf
Browse files- supervisor.conf +9 -14
supervisor.conf
CHANGED
@@ -1,22 +1,17 @@
|
|
1 |
[supervisord]
|
2 |
nodaemon=true
|
3 |
|
4 |
-
[program:
|
5 |
-
command
|
|
|
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:
|
14 |
-
command
|
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
|
|
|
|
|
|
|
|
|
|
|
|