部署
Docker 方式
services:
EasyNVR:
# image: registry.cn-shanghai.aliyuncs.com/rustc/easynvr:v1
image: registry.cn-shanghai.aliyuncs.com/rustc/easynvr_amd64:latest
container_name: EasyNVR
restart: always
# linux 请使用 host 模式
# network_mode: host
ports:
- 10000:10000/tcp
- 10010:10010/tcp
- 28080:28080/tcp
- 24433:24433/tcp
- 25544:25544/tcp
- 21930:21930/tcp
- 15060:15060/tcp
- 15060:15060/udp
- 24888:24888/tcp
- 24888:24888/udp
- 30000-30500:30000-30500/tcp
- 30000-30500:30000-30500/udp
environment:
- TZ=Asia/Shanghai
logging:
options:
max-size: "50M"
deploy:
resources:
limits:
# 限制内存使用上限,根据实际内存修改
memory: 6g # 内存参考自己的硬件调整一下大小
volumes:
- ./configs:/app/configs # 配置文件
- ./logs:/app/logs # 日志
- ./temporary:/app/temporary # 临时文件
- ./record:/app/r # 录像位置,改成自己的位置
- ./stream:/app/stream # 直播临时碎片