Lookup for DB on localhost when running app without docker container

This commit is contained in:
Eugene Zadyra
2018-06-05 08:20:34 +02:00
parent 06588a62b7
commit 81e00f98ee
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ services:
environment:
TELEGRAM_TOKEN: ${TELEGRAM_TOKEN}
SECURITY_SECRET: ${SECURITY_SECRET}
DB_HOST: "database"
volumes:
- ./log:/usr/local/luxmedbookingservice/log
database:

View File

@@ -1,6 +1,6 @@
spring:
datasource:
url: "jdbc:postgresql://database:5432/lbs"
url: "jdbc:postgresql://${DB_HOST:localhost}:5432/lbs"
username: "lbs"
password: "lsb123"
jpa: