62 lines
2.2 KiB
YAML
62 lines
2.2 KiB
YAML
# Loopback-only media services for disposable acceptance, never production.
|
|||
|
|
services:
|
||
|
|
mediamtx:
|
||
|
|
image: bluenviron/mediamtx:1.21.3
|
||
|
|
restart: unless-stopped
|
||
|
|
environment:
|
||
|
|
HEIMDALL_WEBRTC_ALLOWED_ORIGIN: ${HEIMDALL_WEBRTC_ALLOWED_ORIGIN:?Set the local Central origin}
|
||
|
|
MTX_AUTHMETHOD: http
|
||
|
|
MTX_AUTHHTTPADDRESS: ${HEIMDALL_MEDIAMTX_AUTH_URL:?Set the Central callback URL}
|
||
|
|
MTX_WEBRTCALLOWORIGINS: ${HEIMDALL_WEBRTC_ALLOWED_ORIGIN:?Set the local Central origin}
|
||
|
|
# The browser receives this ICE port in SDP; keep the published host port
|
||
|
|
# identical so Docker NAT does not advertise an unreachable container port.
|
||
|
|
MTX_WEBRTCLOCALUDPADDRESS: :${HEIMDALL_TEST_ICE_PORT:-18189}
|
||
|
|
ports:
|
||
|
|
- "127.0.0.1:${HEIMDALL_TEST_PUBLISH_PORT:-18555}:8554/tcp"
|
||
|
|
- "127.0.0.1:${HEIMDALL_TEST_WHEP_PORT:-18889}:8889/tcp"
|
||
|
|
- "127.0.0.1:${HEIMDALL_TEST_ICE_PORT:-18189}:${HEIMDALL_TEST_ICE_PORT:-18189}/udp"
|
||
|
|
volumes:
|
||
|
|
- ./mediamtx.local-test.yml:/mediamtx.yml:ro
|
||
|
|
networks:
|
||
|
|
- heimdall-net
|
||
|
|
|
||
|
|
heimdall-agent:
|
||
|
|
image: heimdall-agent:webrtc-test
|
||
|
|
build:
|
||
|
|
context: ..
|
||
|
|
dockerfile: docker/Dockerfile.agent
|
||
|
|
restart: unless-stopped
|
||
|
|
network_mode: host
|
||
|
|
user: "1654:1654"
|
||
|
|
environment:
|
||
|
|
ASPNETCORE_URLS: http://127.0.0.1:${HEIMDALL_TEST_AGENT_PORT:-18081}
|
||
|
|
Agent__CentralUrl: http://127.0.0.1:${WEB_PORT:-5000}
|
||
|
|
Agent__AllowInsecureHttp: "true"
|
||
|
|
Agent__SiteToken: ${HEIMDALL_TEST_SITE_TOKEN:-}
|
||
|
|
Agent__AgentName: webrtc-synthetic-agent
|
||
|
|
Agent__StateDirectory: /var/lib/heimdall
|
||
|
|
volumes:
|
||
|
|
- heimdall_agent_state:/var/lib/heimdall
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:${HEIMDALL_TEST_AGENT_PORT:-18081}/healthz"]
|
||
|
|
interval: 10s
|
||
|
|
timeout: 3s
|
||
|
|
retries: 3
|
||
|
|
start_period: 20s
|
||
|
|
depends_on:
|
||
|
|
agent-state-init:
|
||
|
|
condition: service_completed_successfully
|
||
|
|
|
||
|
|
agent-state-init:
|
||
|
|
image: heimdall-agent:webrtc-test
|
||
|
|
build:
|
||
|
|
context: ..
|
||
|
|
dockerfile: docker/Dockerfile.agent
|
||
|
|
user: "0:0"
|
||
|
|
entrypoint: ["chown", "-R", "1654:1654", "/state"]
|
||
|
|
volumes:
|
||
|
|
- heimdall_agent_state:/state
|
||
|
|
restart: "no"
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
heimdall_agent_state:
|