sarveshpatel commited on
Commit
b25e893
·
verified ·
1 Parent(s): 4497eca

Update supervisord.conf

Browse files
Files changed (1) hide show
  1. supervisord.conf +6 -11
supervisord.conf CHANGED
@@ -6,33 +6,28 @@ pidfile=/var/run/supervisord.pid
6
  loglevel=info
7
 
8
  [program:postgresql]
9
- command=/usr/lib/postgresql/15/bin/postgres -D /data/postgres -c listen_addresses='localhost' -c port=5432
10
  user=postgres
11
  autostart=true
12
  autorestart=true
13
  priority=10
14
  stdout_logfile=/var/log/supervisor/postgres.log
15
  stderr_logfile=/var/log/supervisor/postgres_err.log
16
- environment=PGDATA="/data/postgres"
17
 
18
- [program:pgadmin]
19
- command=python3 /app/run_pgadmin.py
20
- user=spaceuser
21
  autostart=true
22
  autorestart=true
23
  priority=20
24
  startsecs=10
25
- startretries=5
26
- stdout_logfile=/var/log/supervisor/pgadmin.log
27
- stderr_logfile=/var/log/supervisor/pgadmin_err.log
28
- environment=PGADMIN_CONFIG_CONFIG_DATABASE_URI="sqlite:////data/pgadmin/pgadmin4.db",PGADMIN_SETUP_EMAIL="admin@admin.com",PGADMIN_SETUP_PASSWORD="admin123"
29
 
30
  [program:sync_manager]
31
  command=python3 /app/sync_manager.py
32
- user=spaceuser
33
  autostart=true
34
  autorestart=true
35
  priority=30
36
- startsecs=15
37
  stdout_logfile=/var/log/supervisor/sync.log
38
  stderr_logfile=/var/log/supervisor/sync_err.log
 
6
  loglevel=info
7
 
8
  [program:postgresql]
9
+ command=/usr/lib/postgresql/15/bin/postgres -D /data/postgres -c listen_addresses=localhost -c port=5432
10
  user=postgres
11
  autostart=true
12
  autorestart=true
13
  priority=10
14
  stdout_logfile=/var/log/supervisor/postgres.log
15
  stderr_logfile=/var/log/supervisor/postgres_err.log
 
16
 
17
+ [program:pgweb]
18
+ command=/usr/local/bin/pgweb --bind=0.0.0.0 --listen=7860 --host=localhost --port=5432 --user=postgres --db=appdb --skip-open
 
19
  autostart=true
20
  autorestart=true
21
  priority=20
22
  startsecs=10
23
+ stdout_logfile=/var/log/supervisor/pgweb.log
24
+ stderr_logfile=/var/log/supervisor/pgweb_err.log
 
 
25
 
26
  [program:sync_manager]
27
  command=python3 /app/sync_manager.py
 
28
  autostart=true
29
  autorestart=true
30
  priority=30
31
+ startsecs=20
32
  stdout_logfile=/var/log/supervisor/sync.log
33
  stderr_logfile=/var/log/supervisor/sync_err.log