mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 04:03:06 +00:00
add healthcheck to dockerfile
This commit is contained in:
parent
084cf7ff51
commit
05dbb1c160
1 changed files with 3 additions and 0 deletions
|
@ -117,5 +117,8 @@ RUN /app/bin/docker_entrypoint.sh archivebox version
|
|||
VOLUME "$DATA_DIR"
|
||||
EXPOSE 8000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=20s --retries=15 \
|
||||
CMD curl --silent 'http://localhost:8000/admin/login/' || exit 1
|
||||
|
||||
ENTRYPOINT ["dumb-init", "--", "/app/bin/docker_entrypoint.sh"]
|
||||
CMD ["archivebox", "server", "0.0.0.0:8000"]
|
||||
|
|
Loading…
Reference in a new issue