Compare commits

...

2 Commits

Author SHA1 Message Date
af37f8d193
Merge branch 'master' of ssh://git.kmlabz.com:2222/birbnetes/sample-service-consumer
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-16 15:13:57 +02:00
2d54793459
add compose 2021-08-16 15:13:46 +02:00
2 changed files with 29 additions and 5 deletions

24
docker-compose.yml Normal file
View File

@ -0,0 +1,24 @@
version: '3'
services:
output-service-postgres:
image: "postgres:13"
restart: "always"
volumes:
- "sample-service-data:/var/lib/postgresql/data"
ports:
- "127.0.0.1:54321:5432"
environment:
POSTGRES_USER: "sample-service"
POSTGRES_PASSWORD: "sample-service"
POSTGRES_DB: "sample-service"
rabbitmq:
image: "registry.kmlabz.com/birbnetes/rabbitmq-federation"
ports:
- "127.0.0.1:15672:15672"
- "127.0.0.1:5672:5672"
volumes:
ktor-data:

View File

@ -2,10 +2,10 @@ package config
data class EnvConfig ( data class EnvConfig (
var mqHost: String = System.getenv("MQ_HOST") ?: "localhost", var mqHost: String = System.getenv("MQ_HOST") ?: "localhost",
var mqUserName: String = System.getenv("MQ_USERNAME") ?: "rabbitmq", var mqUserName: String = System.getenv("MQ_USERNAME") ?: "user",
var mqPassWord: String = System.getenv("MQ_PASSWORD") ?: "rabbitmq", var mqPassWord: String = System.getenv("MQ_PASSWORD") ?: "rabbitmq",
var mqExchange: String = System.getenv("MQ_EXCHANGE") ?: "rabbitmq", var mqExchange: String = System.getenv("MQ_EXCHANGE") ?: "sample",
var dbJdbc: String = System.getenv("DB_JDBC") ?: "input", var dbJdbc: String = System.getenv("DB_JDBC") ?: "jdbc:postgresql://localhost:5432/sample-service",
var dbUsername: String = System.getenv("DB_USERNAME") ?: "output", var dbUsername: String = System.getenv("DB_USERNAME") ?: "sample-service",
var dbPassowrd: String = System.getenv("DB_PASSOWRD") ?: "output" var dbPassowrd: String = System.getenv("DB_PASSOWRD") ?: "sample-service"
) )