Add healthcheck logic for waiting that php service is ready (#448)

This commit is contained in:
Lorenzo Dessimoni
2023-09-14 00:41:39 +02:00
committed by GitHub
parent 3df8a96ab9
commit 70f90033db
3 changed files with 7 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ RUN mkdir -p /var/run/php
COPY --link --chmod=755 docker/php/docker-healthcheck.sh /usr/local/bin/docker-healthcheck
HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD ["docker-healthcheck"]
HEALTHCHECK --interval=10s --timeout=3s --retries=3 --start-period=40s CMD ["docker-healthcheck"]
COPY --link --chmod=755 docker/php/docker-entrypoint.sh /usr/local/bin/docker-entrypoint