Set API Healthcheck

This commit is contained in:
Anthony Mineo 2020-08-31 16:38:28 -04:00
parent b3925a8fc6
commit 87bfab307d
2 changed files with 2 additions and 2 deletions

View file

@ -65,6 +65,6 @@ COPY ./build/api/entrypoint.sh /entrypoint.sh
EXPOSE 8080 EXPOSE 8080
HEALTHCHECK --interval=20s --timeout=30s --start-period=5s --retries=5 \ HEALTHCHECK --interval=20s --timeout=30s --start-period=5s --retries=5 \
CMD curl -f -k https://localhost:8443/healthz || exit 1 CMD curl -f -k http://localhost:8080/ || exit 1
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]

View file

@ -44,7 +44,7 @@ services:
replicas: 1 replicas: 1
api: api:
image: "amineo/t2-stats-api:v0.0.1" image: "amineo/t2-stats-api:v0.0.2"
build: build:
context: . context: .
dockerfile: ./build/api/Dockerfile dockerfile: ./build/api/Dockerfile