docker-compose.yml 737 B

12345678910111213141516171819202122232425
  1. services:
  2. ngxflv:
  3. image: registry.cn-chengdu.aliyuncs.com/reghao/ngxflv:20260503
  4. container_name: ngxflv
  5. restart: always
  6. ports:
  7. - "1935:1935" # RTMP 推流端口
  8. - "8080:80" # HTTP 播放端口(映射到主机的 8080)
  9. - "8443:443" # HTTP 播放端口(映射到主机的 8443)
  10. volumes:
  11. - /etc/localtime:/etc/localtime:ro
  12. - /opt/docker/ngxflv/conf/nginx.conf:/usr/local/nginx/conf/nginx.conf
  13. - /opt/docker/ngxflv/rtmp:/data/rtmp
  14. deploy:
  15. resources:
  16. limits:
  17. cpus: '1.0'
  18. memory: 512M
  19. reservations:
  20. memory: 128M
  21. logging:
  22. driver: "json-file"
  23. options:
  24. max-size: "10m"
  25. max-file: "3"