mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 12:52:44 +08:00
feat: 添加Postgre测试靶场
This commit is contained in:
parent
92217f572f
commit
763da727ac
14
TestDocker/Postgre/Dockerfile
Normal file
14
TestDocker/Postgre/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# 使用PostgreSQL官方镜像
|
||||||
|
FROM postgres:latest
|
||||||
|
|
||||||
|
# 设置环境变量
|
||||||
|
ENV POSTGRES_USER=postgres
|
||||||
|
ENV POSTGRES_PASSWORD=123456
|
||||||
|
ENV POSTGRES_DB=mydb
|
||||||
|
|
||||||
|
# 开放5432端口
|
||||||
|
EXPOSE 5432
|
||||||
|
|
||||||
|
# 健康检查
|
||||||
|
HEALTHCHECK --interval=30s --timeout=3s \
|
||||||
|
CMD pg_isready -U postgres || exit 1
|
5
TestDocker/Postgre/README.md
Normal file
5
TestDocker/Postgre/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
docker build -t postgres-server .
|
||||||
|
docker run -d \
|
||||||
|
-p 5432:5432 \
|
||||||
|
--name postgres-container \
|
||||||
|
postgres-server
|
Loading…
Reference in New Issue
Block a user