mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-27 16:27:19 +08:00
* Enhancement: Add Docker Hub image * Push to ghcr.io * Add all `org.opencontainers.image.xxx` labels using `--label` instead of `LABEL` * Change `php-fpm` to listen on `:9000` to expose prometheus metrics via `php-fpm_exporter` * Include `yarn.lock` to speed up builds * Reorder * Use correct sha for pr * Add logging before overriding values in config * Add `DEBUG=true` env var for verbose `entrypoint.sh` logs * Print php exception when snappymail fails to generate data directory and config file on the very first time * Log snappymail version * Fix COPY statement * Add .dockerignore * Add `USER` and `ENTRYPOINT` * Update `.dockerignore` * Add docker image test * Push only if image test succeeds * Log when startup is successful * Use plain `docker build` in `build_and_test.sh` * Fix test output
40 lines
866 B
Text
40 lines
866 B
Text
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/dev/null
|
|
logfile_maxbytes=0
|
|
|
|
[program:nginx]
|
|
command=nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
user=root
|
|
numprocs=1
|
|
autostart=true
|
|
autorestart=false
|
|
startsecs=0
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:php-fpm]
|
|
command=php-fpm -F
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
user=root
|
|
numprocs=1
|
|
autostart=true
|
|
autorestart=false
|
|
startsecs=0
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[eventlistener:subprocess-stopped]
|
|
command=php /listener.php
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
user=root
|
|
numprocs=1
|
|
events=PROCESS_STATE_EXITED,PROCESS_STATE_STOPPED,PROCESS_STATE_FATAL
|
|
autostart=true
|
|
autorestart=unexpected
|