Skip to content

Commit 263a2bc

Browse files
outposts: set container healthcheck inline (cherry-pick #18298 to version-2025.10) (#18370)
outposts: set container healthcheck inline (#18298) Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L. <jens@goauthentik.io>
1 parent 4cc71ef commit 263a2bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

authentik/outposts/controllers/docker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ def _get_container(self) -> tuple[Container, bool]:
203203
"labels": self._get_labels(),
204204
"restart_policy": {"Name": "unless-stopped"},
205205
"network": self.outpost.config.docker_network,
206+
"healthcheck": {
207+
"test": ["CMD", f"/{self.outpost.type}", "healthcheck"],
208+
"interval": 5 * 1_000 * 1_000_000,
209+
"retries": 20,
210+
"start_period": 3 * 1_000 * 1_000_000,
211+
},
206212
}
207213
if self.outpost.config.docker_map_ports:
208214
container_args["ports"] = {

0 commit comments

Comments
 (0)