From bc0d803123f5cd5e3f3e857398b8f2b0c4aad5b9 Mon Sep 17 00:00:00 2001 From: Sylvain Juge Date: Mon, 13 May 2019 11:25:38 +0200 Subject: [PATCH] add login&pwd in JDBC url for PostgreSQL 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. --- docker-compose-postgres.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose-postgres.yml b/docker-compose-postgres.yml index 2ff77f0b5..3306c87a1 100644 --- a/docker-compose-postgres.yml +++ b/docker-compose-postgres.yml @@ -7,7 +7,7 @@ services: environment: - WEBWOLF_HOST=webwolf - WEBWOLF_PORT=9090 - - spring.datasource.url=jdbc:postgresql://webgoat_db:5432/webgoat + - 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 @@ -19,7 +19,7 @@ services: webwolf: image: webgoat/webwolf environment: - - spring.datasource.url=jdbc:postgresql://webgoat_db:5432/webgoat + - 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