andrejsstepanovs

php docker alpine supervisord

Dec 10th, 2020 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. RUN apk add --no-cache supervisor
  2. COPY supervisord.conf /etc/supervisord.conf
  3. CMD ["supervisord"]
  4.  
  5.  
  6. # /etc/supervisord.conf
  7. [supervisord]
  8. nodaemon=true
  9.  
  10. [program:nginx]
  11. command=/usr/sbin/nginx
  12. autostart=true
  13. autorestart=true
  14. stdout_logfile=/dev/stdout
  15. stdout_logfile_maxbytes=0
  16. stderr_logfile=/dev/stderr
  17. stderr_logfile_maxbytes=0
  18.  
  19. [program:php-fpm]
  20. command=/usr/local/sbin/php-fpm
  21. autostart=true
  22. autorestart=true
  23. stdout_logfile=/dev/stdout
  24. stdout_logfile_maxbytes=0
  25. stderr_logfile=/dev/stderr
  26. stderr_logfile_maxbytes=0
  27.  
  28.  
  29. [unix_http_server]
  30. file=/var/run/supervisor.sock
  31. chmod=0700
  32.  
  33. [rpcinterface:supervisor]
  34. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  35.  
  36. [supervisorctl]
  37. serverurl=unix:///var/run/supervisor.sock
  38.  
Add Comment
Please, Sign In to add comment