add compose
This commit is contained in:
parent
e0853f8a40
commit
2d54793459
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal 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:
|
@ -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"
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user