mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add healthcheck for collabora
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
838db89315
commit
fe3e640d19
3 changed files with 14 additions and 1 deletions
|
|
@ -15,7 +15,9 @@ RUN set -ex; \
|
||||||
; \
|
; \
|
||||||
rm -rf /var/lib/apt/lists/*;
|
rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
|
COPY --chmod=775 healthcheck.sh /healthcheck.sh
|
||||||
|
|
||||||
USER 100
|
USER 100
|
||||||
|
|
||||||
HEALTHCHECK CMD nc -z 127.0.0.1 9980 || exit 1
|
HEALTHCHECK --start-period=360s CMD /healthcheck.sh
|
||||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||||
|
|
|
||||||
3
Containers/collabora/healthcheck.sh
Normal file
3
Containers/collabora/healthcheck.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
nc -z 127.0.0.1 9980 || exit 1
|
||||||
|
|
@ -341,6 +341,14 @@
|
||||||
"display_name": "Collabora",
|
"display_name": "Collabora",
|
||||||
"image": "nextcloud/aio-collabora",
|
"image": "nextcloud/aio-collabora",
|
||||||
"init": true,
|
"init": true,
|
||||||
|
"healthcheck": {
|
||||||
|
"start_period": "360s",
|
||||||
|
"test": "/healthcheck.sh",
|
||||||
|
"interval": "30s",
|
||||||
|
"timeout": "30s",
|
||||||
|
"start_interval": "5s",
|
||||||
|
"retries": 3
|
||||||
|
},
|
||||||
"expose": [
|
"expose": [
|
||||||
"9980"
|
"9980"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue