services: ngxflv: image: registry.cn-chengdu.aliyuncs.com/reghao/ngxflv:20260503 container_name: ngxflv restart: always ports: - "1935:1935" # RTMP 推流端口 - "8080:80" # HTTP 播放端口(映射到主机的 8080) - "8443:443" # HTTP 播放端口(映射到主机的 8443) volumes: - /etc/localtime:/etc/localtime:ro - /opt/docker/ngxflv/conf/nginx.conf:/usr/local/nginx/conf/nginx.conf - /opt/docker/ngxflv/rtmp:/data/rtmp deploy: resources: limits: cpus: '1.0' memory: 512M reservations: memory: 128M logging: driver: "json-file" options: max-size: "10m" max-file: "3"