| 12345678910111213141516171819202122232425262728 |
- version: '3'
- services:
- nginx-rtmp:
- build:
- context: .
- dockerfile: Dockerfile.arm
- platform: linux/arm64
- container_name: nginx-rtmp-arm
- restart: unless-stopped
- ports:
- - 1935:1935 # RTMP
- - 8080:80 # HTTP
- - 8443:443 # HTTPS
- environment:
- - HTTP_PORT=80
- - HTTPS_PORT=443
- - RTMP_PORT=1935
- - TZ=Asia/Shanghai
- volumes:
- - ./data/hls:/opt/data/hls
- - ./data/certs:/opt/certs
- - ./logs:/var/log/nginx
- healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:80/healthcheck"]
- interval: 30s
- timeout: 3s
- retries: 3
|