Rather than waiting 5 seconds and hoping for the best after we boot docker compose, add docker healthchecks and wait for all the containers to be healthy.
6 lines
118 B
Docker
6 lines
118 B
Docker
FROM nginx:1-alpine-slim
|
|
|
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
|
|
|
HEALTHCHECK --interval=1s CMD pgrep nginx
|