33 lines
709 B
YAML
33 lines
709 B
YAML
version: '3.8'
|
|
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:
|
|
- ./video_repeater/mediamtx.yml:/mediamtx.yml:ro
|
|
db:
|
|
image: postgres:15
|
|
env_file:
|
|
- web.env
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
web:
|
|
build: ./web
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
env_file:
|
|
- web.env
|
|
command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
|
|
|
volumes:
|
|
postgres_data:
|