docker-compose-arm.yaml 642 B

12345678910111213141516171819202122232425262728
  1. version: '3'
  2. services:
  3. nginx-rtmp:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile.arm
  7. platform: linux/arm64
  8. container_name: nginx-rtmp-arm
  9. restart: unless-stopped
  10. ports:
  11. - 1935:1935 # RTMP
  12. - 8080:80 # HTTP
  13. - 8443:443 # HTTPS
  14. environment:
  15. - HTTP_PORT=80
  16. - HTTPS_PORT=443
  17. - RTMP_PORT=1935
  18. - TZ=Asia/Shanghai
  19. volumes:
  20. - ./data/hls:/opt/data/hls
  21. - ./data/certs:/opt/certs
  22. - ./logs:/var/log/nginx
  23. healthcheck:
  24. test: ["CMD", "curl", "-f", "http://localhost:80/healthcheck"]
  25. interval: 30s
  26. timeout: 3s
  27. retries: 3