-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathdocker-compose.yml
166 lines (162 loc) · 3.92 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
x-superset-depends-on: &superset-depends-on
- db
- redis
x-pinot-depends-on: &pinot-depends-on
- kafka
- zookeeper
x-order-delivery-service-depends-on: &order-delivery-service-depends-on
- mysql
- kafka
- zookeeper
x-superset-volumes: &superset-volumes
- ./docker/docker-init.sh:/app/docker-init.sh
- ./docker/pinot-dashboard.json:/app/pinot-dashboard.json
- ./docker/pinot-database.yml:/app/pinot-database.yml
- ./docker/pythonpath_dev:/app/pythonpath
- superset_home:/app/superset_home
version: "3.7"
services:
redis:
image: kbastani2/noaa-pinot-superset-cache
container_name: superset_cache
restart: unless-stopped
ports:
- "127.0.0.1:6379:6379"
volumes:
- redis:/data
networks:
- PinotNetwork
db:
env_file: docker/.env
image: kbastani2/noaa-pinot-superset-db
container_name: superset_db
restart: unless-stopped
ports:
- "127.0.0.1:5432:5432"
volumes:
- db_home:/var/lib/postgresql/data
networks:
- PinotNetwork
superset:
env_file: docker/.env
image: kbastani2/noaa-pinot-superset-app
container_name: superset_app
command: ["flask", "run", "-p", "8088", "--with-threads", "--reload", "--debugger", "--host=0.0.0.0"]
restart: unless-stopped
ports:
- 8088:8088
depends_on: *superset-depends-on
volumes: *superset-volumes
networks:
- PinotNetwork
zookeeper:
image: debezium/zookeeper:1.5
ports:
- 2181:2181
- 2888:2888
- 3888:3888
networks:
- PinotNetwork
kafka:
image: debezium/kafka:1.5
ports:
- 9092:9092
links:
- zookeeper
environment:
- ADVERTISED_HOST_NAME=kafka
- ZOOKEEPER_CONNECT=zookeeper:2181
networks:
- PinotNetwork
connect:
image: debezium/connect:1.5
ports:
- 8083:8083
links:
- kafka
- mysql
environment:
- BOOTSTRAP_SERVERS=kafka:9092
- GROUP_ID=1
- CONFIG_STORAGE_TOPIC=my_connect_configs
- OFFSET_STORAGE_TOPIC=my_connect_offsets
- STATUS_STORAGE_TOPIC=my_connect_statuses
volumes:
# from https://github.com/RedHatInsights/expandjsonsmt/
- ./kafka-connect-smt-expandjsonsmt-0.0.7-assemble-all.jar:/kafka/connect/debezium-connector-mysql/expandjsonsmt.jar
networks:
- PinotNetwork
mysql:
image: debezium/example-mysql:1.5
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=debezium
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
volumes:
- db_data:/var/lib/mysql
- ./mysql_init.sql:/docker-entrypoint-initdb.d/mysql_init.sql
networks:
- PinotNetwork
pinot:
image: apachepinot/pinot:release-0.7.1
command: "QuickStart -type batch"
ports:
- "9000:9000/tcp"
- "8000:8000/tcp"
depends_on: *pinot-depends-on
networks:
- PinotNetwork
discovery-service:
image: discovery-service:latest
environment:
SPRING_PROFILES_ACTIVE: docker
ports:
- "8761:8761/tcp"
restart: on-failure
networks:
- PinotNetwork
api-gateway:
image: api-gateway:latest
environment:
SPRING_PROFILES_ACTIVE: docker
ports:
- "9090:9090/tcp"
depends_on:
- discovery-service
restart: on-failure
networks:
- PinotNetwork
order-delivery-service:
image: order-web:latest
environment:
SPRING_PROFILES_ACTIVE: docker
SERVER_PORT: 0
depends_on: *order-delivery-service-depends-on
restart: on-failure
networks:
- PinotNetwork
load-simulator:
image: load-simulator:latest
environment:
SPRING_PROFILES_ACTIVE: docker
SERVER_PORT: 0
depends_on:
- discovery-service
- order-delivery-service
networks:
- PinotNetwork
networks:
PinotNetwork:
external:
name: PinotNetwork
volumes:
superset_home:
external: false
db_home:
external: false
redis:
external: false
db_data:
external: true