This project was forked from https://github.com/digininja/DVWA.
The original README.md file has been moved to README.en.md in this directory.
The goal of this project is to develop a context-root aware version that supports reverse proxy servers.
Please note that the DVWA is vulnerable, it is intended.
Do not run the DVWA application in a location where it can be accessed by others, such as public clouds and public hosting services.
This container supports following environment variables.
The DVWA_ADMIN_PASSWORD will change the admin password from the default "password" to the specified one. The password will be effective after setting up the DB.
This container needs a separate MySQL or compatible instance.
For test with the default configuration, you can run a mysql instance as follows;
## for test
$ podman run -it --rm -d -p 3306:3306 \
--env MYSQL_ROOT_PASSWORD=secret \
--env MYSQL_USER=dvwa \
--env MYSQL_PASSWORD=f3538c7cc848 \
--env MYSQL_DATABASE=dvwa \
--name mysql mysql:9
The YAML files are placed in the "kubernetes" directory.
$ cd kubernetes/
$ make setup-secrets
$ for file in 0[01245].yaml ; do kubectl apply -f $file ; done
## 03.cm-dvwa.yaml is copied from https://github.com/cytopia/docker-dvwa
## This project doesn't currently support these customize features.
Please expose the dvwa service with your appropriate method. If you can use the loadbalancer, then you can patch as follows:
$ kubectl patch svc dvwa --patch '{"spec": {"type": "LoadBalancer"}}'
Please make sure that a mysql instance is running.
## for test or development
$ make docker-build
$ make docker-run
Please edit the Makefile to your environment.
DOCKER_IMAGE_VERSION = latest
...
REGISTRY_SERVER = docker.io
REGISTRY_LIBRARY = yasuhiroabe
After modifying the Makefile, a container image can be generated with the following procedures;
$ make docker-build-prod
$ make docker-tag
$ make docker-push
This project is distributed under GPL v3 or any later version.
Content type
Image
Digest
sha256:a382963d1…
Size
173.9 MB
Last updated
about 2 years ago
docker pull yasuhiroabe/sccp-dvwa