mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add healthchecks for auth
This commit is contained in:
parent
b94a6a652e
commit
7ec940a8dc
@ -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"]
|
||||
|
@ -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", "."]
|
||||
|
@ -70,6 +70,8 @@ services:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
auth:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ./api:/app
|
||||
- /app/node_modules
|
||||
|
Loading…
x
Reference in New Issue
Block a user