Initial commit

This commit is contained in:
Pin
2022-04-20 22:57:21 -04:00
commit c80371138a
13 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Docker DVWA Hardened Service
Requires=docker.service
After=docker.service
[Service]
Restart=always
User=root
Group=docker
WorkingDirectory=/opt/dvwa-docker
ExecStartPre={{ dockercompose_location }} -f docker-compose.yml down
ExecStart={{ dockercompose_location }} -f docker-compose.yml up
ExecStop={{ dockercompose_location }} -f docker-compose.yml down
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,31 @@
version: "3"
services:
nginx:
image: nginx:latest
volumes:
- /opt/dvwa-docker/nginx:/etc/nginx/templates
- /opt/dvwa-docker/certs/cert.crt:/etc/ssl/cert.crt
- /opt/dvwa-docker/certs/key.priv:/etc/ssl/private/key.priv
ports:
- "80:80"
- "443:443"
depends_on:
- dvwa
modsec:
image: owasp/modsecurity-crs:apache
environment:
- BACKEND=http://dvwa
ports:
- "8080:80"
depends_on:
- dvwa
dvwa:
image: sagikazarmark/dvwa:latest
networks:
default:
external:
name: dvwa-net