Browse Source

Move healthcheck from Dockerfile to docker-compose because it's optional

Frédéric Guillot 5 years ago
parent
commit
20ec435d6d
2 changed files with 3 additions and 1 deletions
  1. 3 0
      contrib/docker-compose/basic.yml
  2. 0 1
      packaging/docker/Dockerfile

+ 3 - 0
contrib/docker-compose/basic.yml

@@ -16,6 +16,9 @@ services:
       - ADMIN_USERNAME=admin
       - ADMIN_PASSWORD=test123
       - DEBUG=1
+    # Optional health check:
+    # healthcheck:
+    #  test: ["CMD", "/usr/bin/miniflux", "-healthcheck", "auto"]
   db:
     image: postgres:latest
     container_name: postgres

+ 0 - 1
packaging/docker/Dockerfile

@@ -20,7 +20,6 @@ LABEL org.opencontainers.image.documentation=https://miniflux.app/docs/
 
 EXPOSE 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
 COPY --from=build /go/src/app/miniflux /usr/bin/miniflux
 USER nobody