Merge pull request #6 from tommytran732/patch-1

Add Healthcheck
This commit is contained in:
Wonderfall 2022-09-08 01:39:39 +02:00 committed by GitHub
commit 3e0101723f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,7 @@ RUN apk -U upgrade \
zlib \ zlib \
tzdata \ tzdata \
xmlsec \ xmlsec \
curl \
&& adduser -g ${GID} -u ${UID} --disabled-password --gecos "" synapse \ && adduser -g ${GID} -u ${UID} --disabled-password --gecos "" synapse \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
@ -81,3 +82,6 @@ VOLUME /data
EXPOSE 8008/tcp 8009/tcp 8448/tcp EXPOSE 8008/tcp 8009/tcp 8448/tcp
ENTRYPOINT ["python3", "start.py"] ENTRYPOINT ["python3", "start.py"]
HEALTHCHECK --start-period=5s --interval=15s --timeout=5s \
CMD curl -fSs http://localhost:8008/health || exit 1