fix supervisor

This commit is contained in:
2023-11-26 19:33:58 +03:30
parent d7882cf02c
commit eae4d616e4
3 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ RUN groupadd --force -g 1000 octane && useradd -ms /bin/bash --no-log-init --no-
WORKDIR /app
RUN chown -R octane:octane .
EXPOSE 80
COPY ./supervisord.conf /etc/supervisord.conf
COPY ./supervisord.conf /etc/supervisor/octane.conf
COPY ./entrypoint.sh /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

View File

@@ -5,4 +5,4 @@ php artisan package:discover --ansi
php artisan event:cache
php artisan config:cache
php artisan route:cache
exec supervisord --configuration /etc/supervisord.conf
exec supervisord --configuration /etc/supervisor/octane.conf

View File

@@ -18,4 +18,4 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[include]
files = /etc/supervisor.conf
files = /etc/supervisor/conf.d/*.conf