ysrc / xunfeng

巡风是一款适用于企业内网的漏洞快速应急,巡航扫描系统。
GNU General Public License v3.0
3.53k stars 1.34k forks source link

how to connect the mongodb from docker #239

Open GGOOHAPPY opened 4 years ago

GGOOHAPPY commented 4 years ago

we used the docker to install the xunfeng , but we cant see any log and we want to connect the DB remotely . we tried to map the 27017 and 65521 but also fail. Please advise how we could connect the DB inside the docker ?

docker run --name=scan2 -d -p 9001:80 -p 27017:27017 -v /opt/data20191025:/data ysrc/xunfeng:latest"_

Medicean commented 4 years ago

https://github.com/ysrc/xunfeng/blob/master/dockerconf/start.sh#L10