mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
add healthcheck for talk-recording
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
731b1d208c
commit
9360256f7d
3 changed files with 13 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
FROM python:3.13.0-alpine3.20
|
FROM python:3.13.0-alpine3.20
|
||||||
|
|
||||||
COPY --chmod=775 start.sh /start.sh
|
COPY --chmod=775 start.sh /start.sh
|
||||||
|
COPY --chmod=775 healthcheck.sh /healthcheck.sh
|
||||||
|
|
||||||
ENV RECORDING_VERSION=v0.1
|
ENV RECORDING_VERSION=v0.1
|
||||||
ENV ALLOW_ALL=false
|
ENV ALLOW_ALL=false
|
||||||
|
|
@ -54,5 +55,5 @@ USER 122
|
||||||
ENTRYPOINT ["/start.sh"]
|
ENTRYPOINT ["/start.sh"]
|
||||||
CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"]
|
CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"]
|
||||||
|
|
||||||
HEALTHCHECK CMD nc -z 127.0.0.1 1234 || exit 1
|
HEALTHCHECK CMD /healthcheck.sh
|
||||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||||
|
|
|
||||||
3
Containers/talk-recording/healthcheck.sh
Normal file
3
Containers/talk-recording/healthcheck.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
nc -z 127.0.0.1 1234 || exit 1
|
||||||
|
|
@ -485,6 +485,14 @@
|
||||||
"image": "nextcloud/aio-talk-recording",
|
"image": "nextcloud/aio-talk-recording",
|
||||||
"user": "122",
|
"user": "122",
|
||||||
"init": true,
|
"init": true,
|
||||||
|
"healthcheck": {
|
||||||
|
"start_period": "0s",
|
||||||
|
"test": "/healthcheck.sh",
|
||||||
|
"interval": "30s",
|
||||||
|
"timeout": "30s",
|
||||||
|
"start_interval": "5s",
|
||||||
|
"retries": 3
|
||||||
|
},
|
||||||
"expose": [
|
"expose": [
|
||||||
"1234"
|
"1234"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue