YAML structure fix, postgres version fix

The structure of the environment was incorrect. The postgres dialect doesn't match the postgres:latest image.
This commit is contained in:
Patrick Double 2018-11-03 08:38:06 -05:00 committed by Nanne Baars
parent ecbbb5258e
commit f81a6852db

View File

@ -12,8 +12,8 @@ services:
- spring.datasource.password=webgoat - spring.datasource.password=webgoat
- spring.datasource.driver-class-name=org.postgresql.Driver - spring.datasource.driver-class-name=org.postgresql.Driver
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect - spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect
- webgoat.server.directory=/home/webgoat/.webgoat/ - webgoat.server.directory=/home/webgoat/.webgoat/
- webgoat.user.directory=/home/webgoat/.webgoat/ - webgoat.user.directory=/home/webgoat/.webgoat/
ports: ports:
- "8080:8080" - "8080:8080"
webwolf: webwolf:
@ -26,9 +26,8 @@ services:
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect - spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect
ports: ports:
- "9090:9090" - "9090:9090"
db: webgoat_db:
container_name: webgoat_db image: postgres:9.4
image: postgres:latest
# Uncomment to store the state of the database on the host. # Uncomment to store the state of the database on the host.
# volumes: # volumes:
# - ./database:/var/lib/postgresql # - ./database:/var/lib/postgresql