Move healthcheck from Dockerfile to docker-compose because it's optional
This commit is contained in:
parent
53cd369b05
commit
20ec435d6d
2 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,9 @@ services:
|
||||||
- ADMIN_USERNAME=admin
|
- ADMIN_USERNAME=admin
|
||||||
- ADMIN_PASSWORD=test123
|
- ADMIN_PASSWORD=test123
|
||||||
- DEBUG=1
|
- DEBUG=1
|
||||||
|
# Optional health check:
|
||||||
|
# healthcheck:
|
||||||
|
# test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
|
||||||
db:
|
db:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
|
|
|
@ -20,7 +20,6 @@ LABEL org.opencontainers.image.documentation=https://miniflux.app/docs/
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENV LISTEN_ADDR 0.0.0.0:8080
|
ENV LISTEN_ADDR 0.0.0.0:8080
|
||||||
HEALTHCHECK --start-period=30s CMD ["/usr/bin/miniflux", "-healthcheck", "auto"]
|
|
||||||
RUN apk --no-cache add ca-certificates tzdata
|
RUN apk --no-cache add ca-certificates tzdata
|
||||||
COPY --from=build /go/src/app/miniflux /usr/bin/miniflux
|
COPY --from=build /go/src/app/miniflux /usr/bin/miniflux
|
||||||
USER nobody
|
USER nobody
|
||||||
|
|
Loading…
Reference in a new issue