forked from ngoctint1lvc/waf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
90 lines (90 loc) · 2.71 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: "3.7"
services:
openresty:
container_name: openresty-waf
build:
context: ./openresty
dockerfile: Dockerfile
volumes:
- "./openresty/supervisor:/etc/supervisor"
- "./openresty/nginx/conf:/usr/local/openresty/nginx/conf"
- "./openresty/nginx/lua-nginx:/usr/local/openresty/nginx/lua-nginx"
- "./openresty/nginx/html:/usr/local/openresty/nginx/html"
- "./openresty/nginx/ssl:/usr/local/openresty/nginx/ssl"
- "./openresty/modsecurity/modsecurity.conf:/etc/modsecurity/modsecurity.conf"
- "./openresty/modsecurity-crs:/opt/modsecurity-crs"
- "./openresty/openresty-1.15.8.3:/root/openresty"
- "./openresty/modsecurity:/opt/modsecurity"
- "./openresty/modsecurity-nginx:/opt/modsecurity-nginx"
- "./openresty/run.sh:/run.sh"
- "vscode:/root/.vscode-server"
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
ulimits:
core: -1
environment:
MONGODB_SERVER: "${MONGODB_SERVER}"
MONGODB_USER: "${MONGO_INITDB_ROOT_USERNAME}"
MONGODB_PASSWORD: "${MONGO_INITDB_ROOT_PASSWORD}"
COLLECTION_PREFIX: "${COLLECTION_PREFIX}"
DEBUG: "${DEBUG}"
restart: always
dns: 1.1.1.1
dvwa-test:
image: vulnerables/web-dvwa
container_name: dvwa-test
volumes:
- "dvwa-db:/var/lib/mysql"
nginx-test:
build:
context: ./nginx-test
dockerfile: Dockerfile
container_name: nginx-test
volumes:
- "./nginx-test/conf:/etc/nginx"
- "./nginx-test/html:/usr/share/nginx/html"
log-db:
image: "mongo"
container_name: waf-log-db
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGO_INITDB_ROOT_USERNAME}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGO_INITDB_ROOT_PASSWORD}"
volumes:
- "log-db:/data/db"
restart: always
log-db-viewer:
image: mongo-express
ports:
- 127.0.0.1:8081:8081
environment:
ME_CONFIG_MONGODB_SERVER: "${MONGODB_SERVER}"
ME_CONFIG_MONGODB_ADMINUSERNAME: "${MONGO_INITDB_ROOT_USERNAME}"
ME_CONFIG_MONGODB_ADMINPASSWORD: "${MONGO_INITDB_ROOT_PASSWORD}"
ME_CONFIG_BASICAUTH_USERNAME: "${MONGO_EXPRESS_USERNAME}"
ME_CONFIG_BASICAUTH_PASSWORD: "${MONGO_EXPRESS_PASSWORD}"
restart: always
redis:
image: "redis:alpine3.11"
volumes:
- "redis-db:/data"
proxy-server:
build:
context: ./proxy-server
volumes:
- "./proxy-server/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf"
- "./proxy-server/supervisor:/etc/supervisor"
- "./proxy-server/run.sh:/run.sh"
cap_add:
- NET_ADMIN
restart: always
depends_on:
- openresty
ports:
- "127.0.0.1:3004:80"
volumes:
dvwa-db:
log-db:
vscode:
redis-db: