Update icehrm docker production setup

This commit is contained in:
Thilina Pituwala
2020-05-24 02:24:55 +02:00
parent b68401efeb
commit 854e1038c6
7 changed files with 12 additions and 16 deletions

View File

@@ -40,10 +40,10 @@ COPY --chown=nobody ./index.php /var/www/html/index.php
COPY --chown=nobody ./docker/prod/config/config.php /var/www/html/app/config.php
# Expose the port nginx is reachable on
EXPOSE 80
EXPOSE 8070
# Let supervisord start nginx & php-fpm
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
# Configure a healthcheck to validate that everything is up&running
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8082/fpm-ping
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8071/fpm-ping