fix remaining healthchecks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user