mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-21 18:35:23 -04:00
add healthcheck to Dockerfile
This commit is contained in:
parent
0899c298c0
commit
3afd7b0cf0
1 changed files with 2 additions and 3 deletions
|
@ -293,9 +293,8 @@ WORKDIR "$DATA_DIR"
|
||||||
VOLUME "$DATA_DIR"
|
VOLUME "$DATA_DIR"
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
# Optional:
|
HEALTHCHECK --interval=30s --timeout=20s --retries=15 \
|
||||||
# HEALTHCHECK --interval=30s --timeout=20s --retries=15 \
|
CMD curl --silent 'http://localhost:8000/health/' | grep -q 'OK'
|
||||||
# CMD curl --silent 'http://localhost:8000/admin/login/' || exit 1
|
|
||||||
|
|
||||||
ENTRYPOINT ["dumb-init", "--", "/app/bin/docker_entrypoint.sh"]
|
ENTRYPOINT ["dumb-init", "--", "/app/bin/docker_entrypoint.sh"]
|
||||||
CMD ["archivebox", "server", "--quick-init", "0.0.0.0:8000"]
|
CMD ["archivebox", "server", "--quick-init", "0.0.0.0:8000"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue