28 lines
713 B
Plaintext
28 lines
713 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/app/logs/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
user=root
|
|
|
|
[program:backend]
|
|
command=/app/taskpool server
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=3
|
|
startretries=10
|
|
stderr_logfile=/app/logs/backend.err.log
|
|
stdout_logfile=/app/logs/backend.out.log
|
|
stdout_logfile_maxbytes=10MB
|
|
stderr_logfile_maxbytes=10MB
|
|
# 不写死 BH_DB_*,避免覆盖 compose 注入的 MySQL/Postgres。
|
|
# 仅在 compose 未设置时提供默认监听参数。
|
|
environment=BH_SERVER_PORT="8052",BH_SERVER_HOST="0.0.0.0"
|
|
|
|
[program:nginx]
|
|
command=nginx -g "daemon off;"
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/app/logs/nginx.err.log
|
|
stdout_logfile=/app/logs/nginx.out.log
|