fix supervisor
This commit is contained in:
@@ -47,7 +47,7 @@ RUN groupadd --force -g 1000 octane && useradd -ms /bin/bash --no-log-init --no-
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN chown -R octane:octane .
|
RUN chown -R octane:octane .
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
COPY ./supervisord.conf /etc/supervisord.conf
|
COPY ./supervisord.conf /etc/supervisor/octane.conf
|
||||||
COPY ./entrypoint.sh /etc/entrypoint.sh
|
COPY ./entrypoint.sh /etc/entrypoint.sh
|
||||||
ENTRYPOINT ["/etc/entrypoint.sh"]
|
ENTRYPOINT ["/etc/entrypoint.sh"]
|
||||||
HEALTHCHECK --start-period=5s --interval=2s --timeout=5s --retries=8 CMD php artisan octane:status || exit 1
|
HEALTHCHECK --start-period=30s --interval=30s --timeout=5s --retries=8 CMD php artisan octane:status || exit 1
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ php artisan package:discover --ansi
|
|||||||
php artisan event:cache
|
php artisan event:cache
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
php artisan route:cache
|
php artisan route:cache
|
||||||
exec supervisord --configuration /etc/supervisord.conf
|
exec supervisord --configuration /etc/supervisor/octane.conf
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ stderr_logfile=/dev/stderr
|
|||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
files = /etc/supervisor.conf
|
files = /etc/supervisor/conf.d/*.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user