diff --git a/Dockerfile b/Dockerfile index 84b6ad7..24e05d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -84,6 +84,8 @@ ENV PATH="${PATH}:/var/www/wallabag/bin" # Set console entry path WORKDIR /var/www/wallabag +HEALTHCHECK CMD curl --fail --silent --show-error --user-agent healthcheck http://localhost/api/info || exit 1 + EXPOSE 80 ENTRYPOINT ["/entrypoint.sh"] CMD ["wallabag"] diff --git a/README.md b/README.md index 6a6ccef..af05b00 100644 --- a/README.md +++ b/README.md @@ -131,10 +131,6 @@ services: - "80" volumes: - /opt/wallabag/images:/var/www/wallabag/web/assets/images - healthcheck: - test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost/api/info"] - interval: 1m - timeout: 3s depends_on: - db - redis