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: environment:
TELEGRAM_TOKEN: ${TELEGRAM_TOKEN} TELEGRAM_TOKEN: ${TELEGRAM_TOKEN}
SECURITY_SECRET: ${SECURITY_SECRET} SECURITY_SECRET: ${SECURITY_SECRET}
DB_HOST: "database"
volumes: volumes:
- ./log:/usr/local/luxmedbookingservice/log - ./log:/usr/local/luxmedbookingservice/log
database: database:

View File

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