FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit e7bede21 authored by Dr Rich Wareham's avatar Dr Rich Wareham
Browse files

feat(Dockerfile): add healthcheck

Add a healthcheck command which enables docker compose configurations
using the gateway image to wait for the service to be healthy. This is
done mirroring the existing `wget` command used in our boilerplate.
parent 04379afa
Loading
...@@ -24,4 +24,5 @@ COPY --from=frontend-builder /usr/src/app/build/ ./frontend/build/ ...@@ -24,4 +24,5 @@ COPY --from=frontend-builder /usr/src/app/build/ ./frontend/build/
ENV GATEWAY_CONSOLE_UI_DIR=/usr/src/app/frontend/build ENV GATEWAY_CONSOLE_UI_DIR=/usr/src/app/frontend/build
HEALTHCHECK --interval=10s CMD wget --spider http://localhost:9001/proxy/status
ENTRYPOINT ["api-gateway-emulator"] ENTRYPOINT ["api-gateway-emulator"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment