fix remaining healthchecks

This commit is contained in:
2026-02-04 20:12:08 +01:00
parent 2a20cce669
commit f955d7382c
14 changed files with 27 additions and 52 deletions

View File

@@ -3,6 +3,7 @@ services:
image: bluenviron/mediamtx:1.14.0-ffmpeg
container_name: mediamtx
environment:
MTX_API: yes
MTX_RTSPTRANSPORTS: tcp
MTX_WEBRTCADDITIONALHOSTS: :${HOST_IP}
ports:
@@ -19,7 +20,11 @@ services:
- /mnt/yotta/radon/mediamtx:/recordings
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9997/v3/paths/list"]
test:
[
"CMD-SHELL",
"wget -q -O - http://localhost:9997/v3/paths/list || exit 1",
]
interval: 30s
timeout: 10s
retries: 3