mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-11 09:05:56 +08:00
add healtcheck for oo
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
827a27532d
commit
2cbe7d7d6a
3 changed files with 14 additions and 1 deletions
|
@ -4,5 +4,7 @@ FROM onlyoffice/documentserver:8.2.2.1
|
|||
|
||||
# USER root is probably used
|
||||
|
||||
HEALTHCHECK CMD nc -z 127.0.0.1 80 || exit 1
|
||||
COPY --chmod=775 healthcheck.sh /healthcheck.sh
|
||||
|
||||
HEALTHCHECK --start-period=360s CMD /healthcheck.sh
|
||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||
|
|
3
Containers/onlyoffice/healthcheck.sh
Normal file
3
Containers/onlyoffice/healthcheck.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
nc -z 127.0.0.1 80 || exit 1
|
|
@ -670,6 +670,14 @@
|
|||
"display_name": "OnlyOffice",
|
||||
"image": "nextcloud/aio-onlyoffice",
|
||||
"init": true,
|
||||
"healthcheck": {
|
||||
"start_period": "360s",
|
||||
"test": "/healthcheck.sh",
|
||||
"interval": "30s",
|
||||
"timeout": "30s",
|
||||
"start_interval": "5s",
|
||||
"retries": 3
|
||||
},
|
||||
"expose": [
|
||||
"80"
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue