docker-compose.yml 667 B

123456789101112131415161718192021222324
  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:8080" # HTTP 播放端口(映射到主机的 8080)
  9. volumes:
  10. - /etc/localtime:/etc/localtime:ro
  11. - /opt/docker/ngxflv/conf/nginx.conf:/usr/local/nginx/conf/nginx.conf
  12. - /opt/docker/ngxflv/rtmp:/data/rtmp
  13. deploy:
  14. resources:
  15. limits:
  16. cpus: '1.0'
  17. memory: 512M
  18. reservations:
  19. memory: 128M
  20. logging:
  21. driver: "json-file"
  22. options:
  23. max-size: "10m"
  24. max-file: "3"