mirror of
https://github.com/wallabag/docker
synced 2025-12-16 03:06:34 +00:00
Merge pull request #430 from caspermeijn/healthcheck
Add healthcheck to image
This commit is contained in:
@@ -84,6 +84,8 @@ ENV PATH="${PATH}:/var/www/wallabag/bin"
|
|||||||
# Set console entry path
|
# Set console entry path
|
||||||
WORKDIR /var/www/wallabag
|
WORKDIR /var/www/wallabag
|
||||||
|
|
||||||
|
HEALTHCHECK CMD curl --fail --silent --show-error --user-agent healthcheck http://localhost/api/info || exit 1
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["wallabag"]
|
CMD ["wallabag"]
|
||||||
|
|||||||
@@ -131,10 +131,6 @@ services:
|
|||||||
- "80"
|
- "80"
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
|
- /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:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
|
|||||||
Reference in New Issue
Block a user