summaryrefslogtreecommitdiffstats
path: root/portal-BE/docker-compose.yml
diff options
context:
space:
mode:
authorDominik Mizyn <d.mizyn@samsung.com>2019-10-16 13:42:19 +0200
committerDominik Mizyn <d.mizyn@samsung.com>2019-10-16 13:42:46 +0200
commit44d465b4604a7e73494efb2755dd05acf9d5ef7d (patch)
tree34aca7dea7bf7075ae15e08ca574f994e899708d /portal-BE/docker-compose.yml
parent701fad2486d1e8b3730dbb175ad81a4381dece41 (diff)
password moved from hard coded values to environment properties
password moved from hard coded values to environment properties Issue-ID: PORTAL-710 Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com> Change-Id: I13f2fd2f832af5eb99426082f4a1aa620ce94974 Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
Diffstat (limited to 'portal-BE/docker-compose.yml')
-rw-r--r--portal-BE/docker-compose.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/portal-BE/docker-compose.yml b/portal-BE/docker-compose.yml
index 2293afb6..33ae6b0f 100644
--- a/portal-BE/docker-compose.yml
+++ b/portal-BE/docker-compose.yml
@@ -18,8 +18,8 @@ services:
restart: always
environment:
- MYSQL_DATABASE=testdb
- - MYSQL_USER=portal
- - MYSQL_PASSWORD=Test123456
+ - MYSQL_USER=${spring_datasource_username}
+ - MYSQL_PASSWORD=${spring_datasource_password}
- MYSQL_RANDOM_ROOT_PASSWORD=yes
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
@@ -32,6 +32,9 @@ services:
restart: always
ports:
- 8080:8080
+ environment:
+ - spring.datasource.username=${spring_datasource_username}
+ - spring.datasource.password=${spring_datasource_password}
depends_on:
- portal-db
networks: