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