docker-compose.yml 778 B

1234567891011121314151617181920212223242526
  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/ssl:/data/ssl
  14. - /opt/docker/ngxflv/rtmp:/data/rtmp
  15. deploy:
  16. resources:
  17. limits:
  18. cpus: '1.0'
  19. memory: 512M
  20. reservations:
  21. memory: 128M
  22. logging:
  23. driver: "json-file"
  24. options:
  25. max-size: "10m"
  26. max-file: "3"