From f12c685cba9c60e706cc16790130a4eac20eccc8 Mon Sep 17 00:00:00 2001 From: Noname <55666+dancegit@users.noreply.github.com> Date: Mon, 8 Jun 2020 17:23:53 +0100 Subject: [PATCH] fix connection to postgres for default credentials When cloning the repo and running docker-compose up -d --build It does not work for grafka_api_1 because the credentials for postgres are missing. When looking in the code for the credentials in the grafka/grafka project directory in src/main.../resources/application.yml we can see the default credentials used in addition to the connection string defined in this file under services.api.environment --- docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c7b2b2b..3c27efb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,10 @@ version: "3" services: db: image: postgres + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=root + - POSTGRES_DB=postgres ports: - "5432:5432" volumes: @@ -132,4 +136,4 @@ services: ports: - 8082:8082 volumes: - db: \ No newline at end of file + db: