Comment on page
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 -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 -e TZ=Europe/Amsterdam webgoat/webgoat
Another way to deply WebGoat and WebWolf in a more advanced way is to use a compose-file such as the
docker-compose.ymlfile 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.
docker-composefile will simplify getting WebGoat and WebWolf up and running.