37 lines
1004 B
Plaintext
37 lines
1004 B
Plaintext
; app container runs php-fpm + nginx + vite together (dev).
|
|
; reverb/queue override the compose command, so supervisord never starts there.
|
|
|
|
[program:php-fpm]
|
|
command=php-fpm -F
|
|
autorestart=true
|
|
priority=10
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:nginx]
|
|
command=nginx -g 'daemon off;'
|
|
autorestart=true
|
|
priority=20
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:vite]
|
|
; Opt-in: over HTTPS domains the browser cannot load assets from
|
|
; http://<ip>:5173 (mixed content + CORS), so the default is the built manifest.
|
|
; Set VITE_AUTOSTART=true in .env for HMR while working over the IP.
|
|
autostart=%(ENV_VITE_AUTOSTART)s
|
|
command=npm run dev -- --host 0.0.0.0
|
|
directory=/var/www/html
|
|
user=www-data
|
|
environment=HOME="/var/www/html"
|
|
autorestart=true
|
|
priority=30
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|