Add healthchecks for auth

This commit is contained in:
Zoe Roux 2025-03-23 14:59:57 +01:00
parent b94a6a652e
commit 7ec940a8dc
No known key found for this signature in database
3 changed files with 4 additions and 0 deletions

View File

@ -23,4 +23,5 @@ USER nonroot:nonroot
COPY --from=build /keibi /app/keibi
COPY sql ./sql
HEALTHCHECK --interval=5s --retries=15 CMD curl --fail http://localhost:4568$KEIBI_PREFIX/health || exit
CMD ["/app/keibi"]

View File

@ -7,4 +7,5 @@ COPY go.mod go.sum ./
RUN go mod download
EXPOSE 4568
HEALTHCHECK --interval=5s --retries=15 CMD curl --fail http://localhost:4568$KEIBI_PREFIX/health || exit
CMD ["wgo", "run", "-race", "."]

View File

@ -70,6 +70,8 @@ services:
depends_on:
postgres:
condition: service_healthy
auth:
condition: service_healthy
volumes:
- ./api:/app
- /app/node_modules