.mvn
config
docs
platformQuickStarts
scripts
webgoat-container
webgoat-images
webgoat-integration-tests
webgoat-lessons
webgoat-server
webwolf
.gitignore
.travis.yml
COPYRIGHT.txt
CREATE_RELEASE.MD
LICENSE.txt
README.MD
buildspec.yml
docker-compose-local.yml
docker-compose-postgres.yml
docker-compose.yml
mvn-debug
mvnw
mvnw.cmd
pom.xml
I really don't know why exactly spring parameters are not used here, probably for schema creation step. Until changing what the application does on startup this will make it 'just work' without extra changes.
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
version: '2.0'
|
|
|
|
services:
|
|
webgoat:
|
|
image: webgoat/webgoat-8.0
|
|
user: webgoat
|
|
environment:
|
|
- WEBWOLF_HOST=webwolf
|
|
- WEBWOLF_PORT=9090
|
|
- spring.datasource.url=jdbc:postgresql://webgoat_db:5432/webgoat?user=webgoat&password=webgoat
|
|
- spring.datasource.username=webgoat
|
|
- spring.datasource.password=webgoat
|
|
- spring.datasource.driver-class-name=org.postgresql.Driver
|
|
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect
|
|
- webgoat.server.directory=/home/webgoat/.webgoat/
|
|
- webgoat.user.directory=/home/webgoat/.webgoat/
|
|
ports:
|
|
- "8080:8080"
|
|
webwolf:
|
|
image: webgoat/webwolf
|
|
environment:
|
|
- spring.datasource.url=jdbc:postgresql://webgoat_db:5432/webgoat?user=webgoat&password=webgoat
|
|
- spring.datasource.username=webgoat
|
|
- spring.datasource.password=webgoat
|
|
- spring.datasource.driver-class-name=org.postgresql.Driver
|
|
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect
|
|
ports:
|
|
- "9090:9090"
|
|
webgoat_db:
|
|
image: postgres:9.4
|
|
# Uncomment to store the state of the database on the host.
|
|
# volumes:
|
|
# - ./database:/var/lib/postgresql
|
|
environment:
|
|
- POSTGRES_PASSWORD=webgoat
|
|
- POSTGRES_USER=webgoat
|
|
- POSTGRES_DB=webgoat
|
|
ports:
|
|
- "5432:5432"
|
|
|