-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (85 loc) · 2.01 KB
/
docker-compose.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.8"
services:
db:
image: "postgres:13.3"
container_name: "dwh"
restart: always
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_DB: "${POSTGRES_DB}"
ports:
- "5432:5432"
zookeeper:
build:
context: .
dockerfile: ./kafka_docker/zookeeper/Dockerfile.zookeeper
container_name: "zookeeper"
ports:
- "2181:2181"
depends_on:
- db
broker:
build:
context: .
dockerfile: ./kafka_docker/broker/Dockerfile.kafka
container_name: "broker"
ports:
- "9092:9092"
depends_on:
- zookeeper
brokerMonitor:
container_name: "broker-monitor"
image: obsidiandynamics/kafdrop
restart: "no"
ports:
- "9000:9000"
environment:
KAFKA_BROKERCONNECT: "broker:9092"
depends_on:
- broker
datascience-stream:
restart: always
build:
context: .
dockerfile: ./kafka_docker/Dockerfile_datascience.stream
depends_on:
- zookeeper
- broker
- stream-db
datascience-consumer:
build:
context: .
dockerfile: ./kafka_docker/Dockerfile_datascience.consumer
depends_on:
- datascience-stream
stream-connector:
build:
context: .
dockerfile: ./kafka_docker/connector/Dockerfile.connector_mongodb
depends_on:
- broker
- stream-db
- datascience-stream
stream-db:
image: mongo:4.4.6
ports:
- 27017:27017
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGO_USER}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGO_PASSWORD}"
MONGO_INTIDB_DATABASE: "${MONGO_DB}"
depends_on:
- broker
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: "${POSTGRES_USER}"
ME_CONFIG_MONGODB_ADMINPASSWORD: "${POSTGRES_PASSWORD}"
ME_CONFIG_MONGODB_SERVER: "stream-db"
depends_on:
- stream-db