45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:latest
|
|
container_name: postgres_db
|
|
environment:
|
|
POSTGRES_USER: asdfuser
|
|
POSTGRES_PASSWORD: asdfpassword
|
|
POSTGRES_DB: asdfdb
|
|
ports:
|
|
- "3335:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
modsecurity:
|
|
image: owasp/modsecurity-crs:apache-alpine
|
|
container_name: modsecurity
|
|
restart: always
|
|
environment:
|
|
BACKEND: "http://localhost:80"
|
|
SERVER_NAME: "localhost"
|
|
PORT: "3331"
|
|
MODSEC_AUDIT_LOG: "/var/log/modsec_audit.log"
|
|
ERRORLOG: "/var/log/modsec_error.log"
|
|
ACCESSLOG: "/var/log/apache2/access.log"
|
|
MODSEC_AUDIT_LOG_FORMAT: "JSON"
|
|
BLOCKING_PARANOIA: 1
|
|
DETECTION_PARANOIA: 1
|
|
EXECUTING_PARANOIA: 1
|
|
PARANOIA: 1
|
|
network_mode: "host"
|
|
volumes:
|
|
- "/tmp/host-fs-auditlog.log:/var/log/modsec_audit.log"
|
|
- "/tmp/host-fs-errorlog.log:/var/log/modsec_error.log"
|
|
- "/tmp/host-fs-accesslog.log:/var/log/apache2/access.log"
|
|
|
|
dvwa:
|
|
image: vulnerables/web-dvwa
|
|
container_name: dvwa
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
|
|
volumes:
|
|
postgres_data:
|