supervisord.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [supervisord]
  2. nodaemon=true
  3. logfile=/dev/null
  4. logfile_maxbytes=0
  5. pidfile=/tmp/supervisord.pid
  6. # socket 服务:固定 /var/run/supervisor.sock,与 Debian supervisorctl 默认路径一致
  7. # 修复:此前缺失该段,supervisord 实际 socket 与 supervisorctl 默认路径不符,docker exec supervisorctl status 报 no such file
  8. #
  9. # Socket server: fixed at /var/run/supervisor.sock, matching the Debian supervisorctl default
  10. # Fix: previously missing, the actual socket did not match supervisorctl's default, so docker exec supervisorctl status failed
  11. [unix_http_server]
  12. file=/var/run/supervisor.sock
  13. chmod=0700
  14. [supervisorctl]
  15. serverurl=unix:///var/run/supervisor.sock
  16. # dsh Web 客户端
  17. # 仅绑定容器内 loopback,不对外暴露
  18. # 注意:不传 --trusted-host(该 CLI 链路在 rc.6 不可靠),trustedHosts 走 cordis.patch.yml
  19. #
  20. # dsh Web client
  21. # Binds only to the in-container loopback, never exposed externally
  22. # Note: --trusted-host is not passed (unreliable in rc.6); trustedHosts goes through cordis.patch.yml
  23. [program:dsh]
  24. command=/usr/local/bin/dsh --profile web --port 3080
  25. # PATH 继承 entrypoint 注入(含 x-cmd 工具目录)
  26. #
  27. # PATH inherits the entrypoint injection (including the x-cmd tool directory)
  28. user=node
  29. environment=HOME="/home/node"
  30. stdout_logfile=/dev/stdout
  31. stdout_logfile_maxbytes=0
  32. stderr_logfile=/dev/stderr
  33. stderr_logfile_maxbytes=0
  34. autorestart=true
  35. startsecs=3
  36. stopwaitsecs=30
  37. # Caddy basic auth 反代
  38. #
  39. # Caddy basic auth reverse proxy
  40. [program:caddy]
  41. command=/usr/bin/caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
  42. # PATH 继承 entrypoint 注入(含 x-cmd 工具目录)
  43. #
  44. # PATH inherits the entrypoint injection (including the x-cmd tool directory)
  45. user=node
  46. environment=HOME="/home/node",XDG_DATA_HOME="/home/node/.local/share"
  47. stdout_logfile=/dev/stdout
  48. stdout_logfile_maxbytes=0
  49. stderr_logfile=/dev/stderr
  50. stderr_logfile_maxbytes=0
  51. autorestart=true
  52. startsecs=2
  53. stopwaitsecs=10