mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-30 18:57:12 +01:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
960a85d8a7 | ||
|
|
6cd85f48cd | ||
|
|
eca3af3da5 | ||
|
|
b141cfe449 | ||
|
|
3104ec0be9 | ||
|
|
acd778f815 | ||
|
|
0641860c3f | ||
|
|
f6564ffb14 | ||
|
|
d751217d9a | ||
|
|
9bd40b98df |
@@ -28,9 +28,7 @@ RUN npm install --production \
|
|||||||
&& npm run production \
|
&& npm run production \
|
||||||
&& rm -rf node_modules \
|
&& rm -rf node_modules \
|
||||||
&& mv /var/www/app/storage $BAK_STORAGE_PATH \
|
&& mv /var/www/app/storage $BAK_STORAGE_PATH \
|
||||||
&& mv /var/www/app/public $BAK_PUBLIC_PATH \
|
&& mv /var/www/app/public $BAK_PUBLIC_PATH
|
||||||
&& mkdir /var/log/supervisord /var/run/supervisord \
|
|
||||||
&& chown $INVOICENINJA_USER:www-data /var/log/supervisord /var/run/supervisord
|
|
||||||
|
|
||||||
# Prepare php image
|
# Prepare php image
|
||||||
FROM php:${PHP_VERSION}-fpm-alpine
|
FROM php:${PHP_VERSION}-fpm-alpine
|
||||||
@@ -90,7 +88,9 @@ RUN addgroup --gid=$UID -S "$INVOICENINJA_USER" \
|
|||||||
--no-create-home \
|
--no-create-home \
|
||||||
"$INVOICENINJA_USER" \
|
"$INVOICENINJA_USER" \
|
||||||
&& addgroup "$INVOICENINJA_USER" www-data \
|
&& addgroup "$INVOICENINJA_USER" www-data \
|
||||||
&& chown -R "$INVOICENINJA_USER":"$INVOICENINJA_USER" /var/www/app
|
&& mkdir /var/log/supervisord /var/run/supervisord \
|
||||||
|
&& chown -R "$INVOICENINJA_USER":"$INVOICENINJA_USER" /var/www/app \
|
||||||
|
&& chown $INVOICENINJA_USER:www-data /var/log/supervisord /var/run/supervisord
|
||||||
|
|
||||||
USER $UID
|
USER $UID
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
[supervisord]
|
[supervisord]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
user=invoiceninja
|
user=invoiceninja
|
||||||
pidfile=/var/run/supervisord/supervisord.pid
|
pidfile=/var/run/supervisord/supervisord.pid
|
||||||
@@ -7,6 +8,10 @@ logfile_maxbytes=0
|
|||||||
loglevel=error
|
loglevel=error
|
||||||
|
|
||||||
[program:php-fpm]
|
[program:php-fpm]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
redirect_stderr=true
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
@@ -14,6 +19,10 @@ stderr_logfile_maxbytes=0
|
|||||||
command=php-fpm
|
command=php-fpm
|
||||||
|
|
||||||
[program:scheduler]
|
[program:scheduler]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
redirect_stderr=true
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
@@ -21,9 +30,13 @@ stderr_logfile_maxbytes=0
|
|||||||
command=php artisan schedule:work
|
command=php artisan schedule:work
|
||||||
|
|
||||||
[program:queue-worker]
|
[program:queue-worker]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
redirect_stderr=true
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
numprocs=2
|
numprocs=2
|
||||||
command=php artisan queue:work --sleep=3 --tries=1 --memory=1024 --timeout=3600 --daemon
|
command=php artisan queue:work --sleep=3 --tries=1 --memory=256 --timeout=3600 --daemon
|
||||||
Reference in New Issue
Block a user