Skip to content

Commit 6a6c2ef

Browse files
committed
Remove healthchecks and mention how to optin to them in docs
1 parent 4f10d12 commit 6a6c2ef

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

docker/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ RUN chmod 644 /etc/logrotate.d/nginx-proxy-manager
4848

4949
VOLUME [ "/data", "/etc/letsencrypt" ]
5050
ENTRYPOINT [ "/init" ]
51-
HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health
5251

5352
LABEL org.label-schema.schema-version="1.0" \
5453
org.label-schema.license="MIT" \

docker/dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/
2626

2727
EXPOSE 80 81 443
2828
ENTRYPOINT [ "/init" ]
29-
HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health
29+

docs/advanced-config/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ file, it's "exposed" by the portainer docker image for you and not available on
4848
the docker host outside of this docker network. The service name is used as the
4949
hostname, so make sure your service names are unique when using the same network.
5050

51+
## Docker Healthcheck
52+
53+
The `Dockerfile` that builds this project does not include a `HEALTCHECK` but you can opt in to this
54+
feature by adding the following to the service in your `docker-compose.yml` file:
55+
56+
```yml
57+
healthcheck:
58+
test: ["CMD", "/bin/check-health"]
59+
interval: 10s
60+
timeout: 3s
61+
```
62+
5163
## Docker Secrets
5264

5365
This image supports the use of Docker secrets to import from file and keep sensitive usernames or passwords from being passed or preserved in plaintext.

0 commit comments

Comments
 (0)