Docker

Method 1 - WebGoat and WebWolf All-in-One Image

The easiest way to start WebGoat as a Docker container is to use the All-in-One WebGoat image which contains both WebGoat and WebWolf as well as an NGINX reverse proxy.

  1. Run the following command to download the All-in-One image from DockerHub, and consequently install and execute both WebGoat and WebWolf.

docker run -d -p 8080:8080 -p 9090:9090 -e TZ=Europe/Amsterdam webgoat/goatandwolf

Method 2 - WebGoat and WebWolf Docker Compose

Another way to deply WebGoat and WebWolf in a more advanced way is to use a compose-file such as the docker-compose.yml file from the WebGoat Github repository. This will start both containers and it also takes care of setting up the connection between WebGoat and WebWolf.

  1. Create folder WASE in your laptop / PC and go into that folder.

  2. Run the following command from the folder WASE

curl https://raw.githubusercontent.com/WebGoat/WebGoat/develop/docker-compose.yml | docker-compose -f - up

Important: the current directory on your host will be mapped into the container for keeping state.

Using the docker-compose file will simplify getting WebGoat and WebWolf up and running.