mirror of
https://memleak.eu/sn0w/pleroma-docker.git
synced 2024-12-22 01:48:47 -05:00
add basic healthcheck support
This commit is contained in:
parent
d417805d53
commit
6f4747304a
@ -79,3 +79,12 @@ RUN \
|
|||||||
cp ./config/dev.exs ./config/prod.secret.exs && \
|
cp ./config/dev.exs ./config/prod.secret.exs && \
|
||||||
BUILDTIME=1 /entrypoint.sh && \
|
BUILDTIME=1 /entrypoint.sh && \
|
||||||
rm ./config/prod.secret.exs
|
rm ./config/prod.secret.exs
|
||||||
|
|
||||||
|
# Register healthcheck
|
||||||
|
# You might need to change these values on slow or busy servers.
|
||||||
|
HEALTHCHECK \
|
||||||
|
--interval=10s \
|
||||||
|
--start-period=50s \
|
||||||
|
--timeout=4s \
|
||||||
|
--retries=3 \
|
||||||
|
CMD curl -sSLf http://localhost:4000/api/pleroma/healthcheck || exit 1
|
||||||
|
@ -30,6 +30,9 @@ config :pleroma, Pleroma.Repo,
|
|||||||
# You should not change this.
|
# You should not change this.
|
||||||
config :pleroma, Pleroma.Uploaders.Local, uploads: "/uploads"
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "/uploads"
|
||||||
|
|
||||||
|
config :pleroma, :instance,
|
||||||
|
healthcheck: true
|
||||||
|
|
||||||
#
|
#
|
||||||
# vvv Your awesome config options go here vvv
|
# vvv Your awesome config options go here vvv
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user