docker-compose-local.yml now extends docker-compose.yml
WebWolf waits for 8 seconds after WebGoat starts so the database connection can be established
This commit is contained in:
parent
bca8b3c650
commit
3d58049af6
@ -104,7 +104,7 @@ server.address=x.x.x.x
|
|||||||
|
|
||||||
# Vagrant
|
# Vagrant
|
||||||
|
|
||||||
We supply a complete development environment using Vagrant, to run WebGoat with Vagrant you must first have Vagrant and Virtualbox installed.
|
We supply a complete environment using Vagrant, to run WebGoat with Vagrant you must first have Vagrant and Virtualbox installed.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ cd WebGoat/webgoat-images/vagrant-training
|
$ cd WebGoat/webgoat-images/vagrant-training
|
||||||
@ -112,7 +112,7 @@ We supply a complete development environment using Vagrant, to run WebGoat with
|
|||||||
```
|
```
|
||||||
|
|
||||||
Once the provisioning is complete login to the Virtualbox with username vagrant and password vagrant.
|
Once the provisioning is complete login to the Virtualbox with username vagrant and password vagrant.
|
||||||
The source code will be available in the home directory.
|
WebGoat and WebWolf will automatically start when you login to this image.
|
||||||
|
|
||||||
|
|
||||||
# Building a new Docker image
|
# Building a new Docker image
|
||||||
|
@ -3,16 +3,11 @@ version: '2.1'
|
|||||||
services:
|
services:
|
||||||
webgoat:
|
webgoat:
|
||||||
image: webgoat/webgoat-v8.0.0.snapshot
|
image: webgoat/webgoat-v8.0.0.snapshot
|
||||||
environment:
|
extends:
|
||||||
- WEBWOLF_HOST=webwolf
|
file: docker-compose.yml
|
||||||
- WEBWOLF_PORT=9090
|
service: webgoat
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
volumes:
|
|
||||||
- .:/home/webgoat/.webgoat
|
|
||||||
command: "java -Djava.security.egd=file:/dev/./urandom -jar /home/webgoat/webgoat.jar --server.address=0.0.0.0 --server.port=8080"
|
|
||||||
webwolf:
|
webwolf:
|
||||||
|
extends:
|
||||||
|
file: docker-compose.yml
|
||||||
|
service: webwolf
|
||||||
image: webgoat/webwolf-v8.0.0.snapshot
|
image: webgoat/webwolf-v8.0.0.snapshot
|
||||||
ports:
|
|
||||||
- "9090:9090"
|
|
||||||
command: bash -c "sleep 8 && java -Djava.security.egd=file:/dev/./urandom -jar /home/webwolf/webwolf.jar --server.port=9090 --server.address=0.0.0.0 --spring.datasource.url=jdbc:hsqldb:hsql://webgoat:9001/webgoat"
|
|
||||||
|
@ -10,9 +10,9 @@ services:
|
|||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/home/webgoat/.webgoat
|
- .:/home/webgoat/.webgoat
|
||||||
command: "java -Djava.security.egd=file:/dev/./urandom -jar /home/webgoat/webgoat.jar --server.address=0.0.0.0"
|
command: "java -Djava.security.egd=file:/dev/./urandom -jar /home/webgoat/webgoat.jar --server.port=8080 --server.address=0.0.0.0"
|
||||||
webwolf:
|
webwolf:
|
||||||
image: webgoat/webwolf
|
image: webgoat/webwolf
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
command: bash -c "sleep 8 && java -Djava.security.egd=file:/dev/./urandom -jar /home/webwolf/webwolf.jar --server.port=9090 --server.address=0.0.0.0 --spring.datasource.url=jdbc:hsqldb:hsql://webgoat_db:9001/webgoat"
|
command: bash -c "sleep 8 && java -Djava.security.egd=file:/dev/./urandom -jar /home/webwolf/webwolf.jar --server.port=9090 --server.address=0.0.0.0 --spring.datasource.url=jdbc:hsqldb:hsql://webgoat:9001/webgoat"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user