We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b923b7 commit 6f9351aCopy full SHA for 6f9351a
Dockerfile
@@ -106,5 +106,10 @@ ENV IPFS_LOGGING ""
106
# 2. The API and Gateway are accessible from outside the container.
107
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/start_ipfs"]
108
109
+# Heathcheck for the container
110
+# QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn is the CID of empty folder
111
+HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
112
+ CMD ipfs dag stat /ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn || exit 1
113
+
114
# Execute the daemon subcommand by default
115
CMD ["daemon", "--migrate=true"]
0 commit comments