尝试docker-compose启动

This commit is contained in:
xiaoxie
2021-11-05 20:25:29 +08:00
parent 460bd4f9aa
commit fa54f00a9d
4 changed files with 36 additions and 15 deletions

View File

@@ -12,6 +12,9 @@ services:
wvp:
build:
context: ./wvp
args:
gitUrl: "https://gitee.com/xieyu1989"
zlmGitUrl: "https://gitee.com/xia-chu/ZLMediaKit"
restart: always
ports:
- "5060:5060"
@@ -24,8 +27,20 @@ services:
- "30000-30500:30000-30500/udp"
volumes:
- ./video:/opt/media/www/record/
- ./logs/wvp:/opt/wvp/logs/
- ./logs/assist:/opt/assist/logs/
- ./logs/media:/opt/media/logs/
environment:
TZ: "Asia/Shanghai"
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PWD: root
WVP_DOMAIN: 6101130049
WVP_ID: 61011300490000000001
# [必须修改] 本机的IP
WVP_HOST: 172.18.0.61
WVP_PWD: aseqw_+hiy123
ASSIST_CONFIG:
WVP_CONFIG:
depends_on:
- redis