From f81a6852dbf9951d6baf5aa05d5abac909b7a54e Mon Sep 17 00:00:00 2001 From: Patrick Double Date: Sat, 3 Nov 2018 08:38:06 -0500 Subject: [PATCH] YAML structure fix, postgres version fix The structure of the environment was incorrect. The postgres dialect doesn't match the postgres:latest image. --- docker-compose-postgres.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docker-compose-postgres.yml b/docker-compose-postgres.yml index 56c9a707c..2ff77f0b5 100644 --- a/docker-compose-postgres.yml +++ b/docker-compose-postgres.yml @@ -12,8 +12,8 @@ services: - 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/ + - webgoat.server.directory=/home/webgoat/.webgoat/ + - webgoat.user.directory=/home/webgoat/.webgoat/ ports: - "8080:8080" webwolf: @@ -26,9 +26,8 @@ services: - spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect ports: - "9090:9090" - db: - container_name: webgoat_db - image: postgres:latest + webgoat_db: + image: postgres:9.4 # Uncomment to store the state of the database on the host. # volumes: # - ./database:/var/lib/postgresql