This commit is contained in:
parent
5758721ab9
commit
a43b692acf
@ -25,8 +25,11 @@ services:
|
||||
POSTGRES_DB: "output-service-rdb"
|
||||
DB_URL: "jdbc:postgresql://output-service-postgres:5432/output-service-rdb"
|
||||
MQ_HOST: rabbitmq
|
||||
MQ_USERNAME: rabbitmq
|
||||
MQ_USERNMAE: rabbitmq
|
||||
MQ_PASSWORD: rabbitmq
|
||||
depends_on:
|
||||
- rabbitmq
|
||||
- output-service-postgres
|
||||
|
||||
rabbitmq:
|
||||
image: "rabbitmq:3-management"
|
||||
|
@ -7,13 +7,13 @@ ktor {
|
||||
modules = [ com.kmalbz.ApplicationKt.module ]
|
||||
}
|
||||
db {
|
||||
jdbcUrl = ${DB_URL} //jdbc:postgresql://localhost:${db_port}/${db_name}
|
||||
dbUser = ${DB_USER}
|
||||
dbPassword = ${DB_PASSWORD}
|
||||
jdbc = ${DB_URL}
|
||||
user = ${DB_USER}
|
||||
password = ${DB_PASSWORD}
|
||||
}
|
||||
mq{
|
||||
host = ${MQ_HOST}
|
||||
username = ${MQ_USERNMAE}
|
||||
username = ${MQ_USERNAME}
|
||||
password = ${MQ_PASSWORD}
|
||||
}
|
||||
}
|
@ -14,11 +14,11 @@ object DatabaseFactory {
|
||||
@KtorExperimentalAPI
|
||||
private val appConfig = HoconApplicationConfig(ConfigFactory.load())
|
||||
@KtorExperimentalAPI
|
||||
private val dbUrl = appConfig.property("db.jdbcUrl").getString()
|
||||
private val dbUrl = appConfig.property("db.jdbc").getString()
|
||||
@KtorExperimentalAPI
|
||||
private val dbUser = appConfig.property("db.dbUser").getString()
|
||||
private val dbUser = appConfig.property("db.user").getString()
|
||||
@KtorExperimentalAPI
|
||||
private val dbPassword = appConfig.property("db.dbPassword").getString()
|
||||
private val dbPassword = appConfig.property("db.password").getString()
|
||||
|
||||
@KtorExperimentalAPI
|
||||
fun init() {
|
||||
|
Loading…
Reference in New Issue
Block a user