mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
prosody: Start on health-check pass
This commit is contained in:
parent
80ad429457
commit
263149c324
@ -1,6 +1,6 @@
|
||||
FROM docker.io/debian:bookworm-slim
|
||||
ARG VERSION=0.12.4
|
||||
ARG MODULES_VERSION=e5ad3f1f48bd
|
||||
ARG MODULES_VERSION=ef3aa6901a93
|
||||
|
||||
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
||||
curl mercurial gnupg ca-certificates apt-transport-https
|
||||
|
@ -70,6 +70,7 @@ modules_enabled = {
|
||||
-- HTTP modules
|
||||
"websocket"; -- XMPP over WebSockets
|
||||
"http_openmetrics"; -- Enables metrics collection in OpenMetrics-compatible format.
|
||||
"http_health"; -- Enabled health-checks over HTTP.
|
||||
|
||||
-- Other specific functionality
|
||||
"conversejs"; -- Web-based frontend for XMPP
|
||||
|
@ -4,10 +4,13 @@ Wants=container-build@%N.service container-volume@%N.service lldap.service grafa
|
||||
After=container-build@%N.service container-volume@%N.service lldap.service grafana-dashboard@prosody.service
|
||||
|
||||
[Container]
|
||||
AutoUpdate=local
|
||||
ContainerName=%N
|
||||
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
||||
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:5280/health
|
||||
Image=localhost/%N:latest
|
||||
Network=internal
|
||||
PodmanArgs=--sdnotify=healthy
|
||||
PublishPort=5222:5222
|
||||
PublishPort=5223:5223
|
||||
PublishPort=5269:5269
|
||||
|
Loading…
Reference in New Issue
Block a user