WebWolf waits for 8 seconds after WebGoat starts so the database connection can be established
19 lines
639 B
YAML
19 lines
639 B
YAML
version: '2.1'
|
|
|
|
services:
|
|
webgoat:
|
|
image: webgoat/webgoat-8.0
|
|
environment:
|
|
- WEBWOLF_HOST=webwolf
|
|
- WEBWOLF_PORT=9090
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- .:/home/webgoat/.webgoat
|
|
command: "java -Djava.security.egd=file:/dev/./urandom -jar /home/webgoat/webgoat.jar --server.port=8080 --server.address=0.0.0.0"
|
|
webwolf:
|
|
image: webgoat/webwolf
|
|
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"
|