-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
30 lines (25 loc) · 827 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// config.js
module.exports = {
database: {
username: 'user',
password: '1234',
database: 'chat-app',
host: 'mysql-container', //'localhost', //
dialect: 'mysql',
},
jwt_expiry: '6h',
jwt_secret: "a_strong_secret_key",
redisConfig : {
url: 'redis://redis-container:6379', //'redis://localhost:6389', //
},
kafkaConfig : {
host: 'kafka:9092', //'localhost:9092', //
topic: {
CHAT_MESSAGES: "chat-messages",
CHAT_EVENTS: "chat-events"
},
}
};
// docker run --name mysql-container -e MYSQL_ROOT_PASSWORD=root-pw -e MYSQL_DATABASE=chat-app -e MYSQL_USER=user -e MYSQL_PASSWORD=1234 -d -p 3306:3306 mysql:latest
// docker run --name redis-container -p 6389:6379 -d redis:latest
// docker run -p 2181:2181 zookeeper