[supervisord] nodaemon=true user=root [program:postgresql] command=su - postgres -c "/usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/data -c config_file=/etc/postgresql/15/main/postgresql.conf" autorestart=true priority=10 [program:fastapi] command=uvicorn main:app --host 0.0.0.0 --port 7860 directory=/app autorestart=true priority=20 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0