This commit is contained in:
parent
75cfe13650
commit
90365cfa9e
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if env -i REQUEST_METHOD=GET SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping cgi-fcgi -bind -connect /var/run/php/php-fpm.sock; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
@ -70,10 +70,8 @@ COPY --link ./.docker/conf.d/50-opcache_prod.ini $PHP_INI_DIR/conf.d/
|
|||||||
RUN echo "export PS1='\h:\w\$ '" >> /root/.bashrc
|
RUN echo "export PS1='\h:\w\$ '" >> /root/.bashrc
|
||||||
|
|
||||||
COPY --chmod=744 --link .docker/docker-entrypoint.d /docker-entrypoint.d
|
COPY --chmod=744 --link .docker/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY --link ./.docker/docker-healthcheck.sh /usr/local/bin/docker-healthcheck
|
|
||||||
COPY --link ./.docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
COPY --link ./.docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||||
|
|
||||||
HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD ["/usr/local/bin/docker-healthcheck"]
|
|
||||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
|
||||||
|
|
||||||
# Expose PHP-FPM port
|
# Expose PHP-FPM port
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user