mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-05-05 10:17:49 +00:00
feat: 添加Mongodb测试靶场
This commit is contained in:
parent
c7b6e21d39
commit
878595e341
13
TestDocker/Mongodb/Dockerfile
Normal file
13
TestDocker/Mongodb/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
# 使用MongoDB官方镜像
|
||||
FROM mongo:latest
|
||||
|
||||
# 设置环境变量
|
||||
ENV MONGO_INITDB_ROOT_USERNAME=admin
|
||||
ENV MONGO_INITDB_ROOT_PASSWORD=123456
|
||||
|
||||
# 开放27017端口
|
||||
EXPOSE 27017
|
||||
|
||||
# 健康检查
|
||||
HEALTHCHECK --interval=30s --timeout=3s \
|
||||
CMD mongosh --eval 'db.runCommand("ping").ok' localhost:27017/test --quiet
|
5
TestDocker/Mongodb/README.txt
Normal file
5
TestDocker/Mongodb/README.txt
Normal file
@ -0,0 +1,5 @@
|
||||
docker build -t mongodb-server .
|
||||
docker run -d \
|
||||
-p 27017:27017 \
|
||||
--name mongodb-container \
|
||||
mongodb-server
|
Loading…
x
Reference in New Issue
Block a user