51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
mediamtx:
|
|
image: bluenviron/mediamtx:latest
|
|
container_name: mediamtx
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8554:8554" # RTSP
|
|
- "8888:8888" # HLS
|
|
- "8889:8889" # WebRTC
|
|
# - "9997:9997" # HTTP API
|
|
volumes:
|
|
- ./mediamtx/mediamtx.yml:/mediamtx.yml:ro
|
|
|
|
redis:
|
|
container_name: redis
|
|
image: redis
|
|
restart: always
|
|
volumes:
|
|
- redis_data:/data
|
|
ports:
|
|
- "6379:6379"
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 5
|
|
|
|
volumes:
|
|
redis_data:
|
|
|
|
# postgres:
|
|
# image: postgres:15
|
|
# volumes:
|
|
# - postgres_data:/var/lib/postgresql/data/
|
|
# env_file:
|
|
# - .env
|
|
# ports:
|
|
# - '5432:5432'
|
|
# healthcheck:
|
|
# test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
|
|
# interval: 10s
|
|
# timeout: 60s
|
|
# retries: 3
|
|
# start_period: 10s
|
|
|
|
# volumes:
|
|
# postgres_data:
|
|
# static_volume:
|