mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Use 30s interval healthchecks
This commit is contained in:
parent
6391a99bb9
commit
9dc1087273
@ -23,5 +23,5 @@ USER nonroot:nonroot
|
|||||||
COPY --from=build /keibi /app/keibi
|
COPY --from=build /keibi /app/keibi
|
||||||
COPY sql ./sql
|
COPY sql ./sql
|
||||||
|
|
||||||
HEALTHCHECK --interval=5s --retries=15 CMD curl --fail http://localhost:4568$KEIBI_PREFIX/health || exit
|
HEALTHCHECK --interval=30s --retries=15 CMD curl --fail http://localhost:4568$KEIBI_PREFIX/health || exit
|
||||||
CMD ["/app/keibi"]
|
CMD ["/app/keibi"]
|
||||||
|
@ -7,5 +7,5 @@ COPY go.mod go.sum ./
|
|||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
EXPOSE 4568
|
EXPOSE 4568
|
||||||
HEALTHCHECK --interval=5s --retries=15 CMD curl --fail http://localhost:4568$KEIBI_PREFIX/health || exit
|
HEALTHCHECK --interval=30s --retries=15 CMD curl --fail http://localhost:4568$KEIBI_PREFIX/health || exit
|
||||||
CMD ["wgo", "run", "-race", "."]
|
CMD ["wgo", "run", "-race", "."]
|
||||||
|
@ -25,5 +25,5 @@ COPY --from=builder /app /app
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
# The back can take a long time to start if meilisearch is initializing
|
# The back can take a long time to start if meilisearch is initializing
|
||||||
HEALTHCHECK --interval=5s --retries=15 CMD curl --fail http://localhost:5000/health || exit
|
HEALTHCHECK --interval=30s --retries=15 CMD curl --fail http://localhost:5000/health || exit
|
||||||
ENTRYPOINT ["/app/kyoo"]
|
ENTRYPOINT ["/app/kyoo"]
|
||||||
|
@ -17,6 +17,6 @@ RUN dotnet restore
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
ENV DOTNET_USE_POLLING_FILE_WATCHER 1
|
ENV DOTNET_USE_POLLING_FILE_WATCHER 1
|
||||||
# HEALTHCHECK --interval=5s CMD curl --fail http://localhost:5000/health || exit
|
# HEALTHCHECK --interval=30s CMD curl --fail http://localhost:5000/health || exit
|
||||||
HEALTHCHECK CMD true
|
HEALTHCHECK CMD true
|
||||||
ENTRYPOINT ["dotnet", "watch", "--non-interactive", "run", "--no-restore", "--project", "/app/src/Kyoo.Core"]
|
ENTRYPOINT ["dotnet", "watch", "--non-interactive", "run", "--no-restore", "--project", "/app/src/Kyoo.Core"]
|
||||||
|
@ -61,6 +61,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.auth.rule=PathPrefix(`/auth/`)"
|
- "traefik.http.routers.auth.rule=PathPrefix(`/auth/`)"
|
||||||
|
- "traefik.http.routers.auth.rule=PathPrefix(`/.well-known/`)"
|
||||||
|
|
||||||
api:
|
api:
|
||||||
build:
|
build:
|
||||||
@ -161,7 +162,6 @@ services:
|
|||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
- "--entryPoints.web.address=:8901"
|
- "--entryPoints.web.address=:8901"
|
||||||
- "--accesslog=true"
|
- "--accesslog=true"
|
||||||
- "--log.level=DEBUG"
|
|
||||||
ports:
|
ports:
|
||||||
- "8901:8901"
|
- "8901:8901"
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user