-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose-store.yml
More file actions
185 lines (183 loc) · 5.17 KB
/
Copy pathcompose-store.yml
File metadata and controls
185 lines (183 loc) · 5.17 KB
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
services:
###### ZooKeeper ######
zookeeper:
image: zookeeper:3.9
container_name: zookeeper
restart: always
ports:
- "2181:2181"
networks:
- factorhouse
profiles:
- pinot
environment:
ZOO_4LW_COMMANDS_WHITELIST: ruok,stat
healthcheck:
test: ["CMD-SHELL", "echo ruok | nc -w 2 127.0.0.1 2181 | grep imok"]
interval: 5s
timeout: 3s
retries: 5
start_period: 20s
###### Pinot ######
pinot-controller:
image: apachepinot/pinot:1.2.0
command: "StartController -zkAddress zookeeper:2181"
container_name: pinot_controller
restart: unless-stopped
ports:
- "19000:9000"
networks:
- factorhouse
profiles:
- pinot
environment:
JAVA_OPTS: "-Dplugins.dir=/opt/pinot/plugins -Xms512M -Xmx1G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xloggc:gc-pinot-controller.log"
depends_on:
zookeeper:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9000/health || exit 1"]
interval: 5s
timeout: 5s
retries: 10
pinot-broker:
image: apachepinot/pinot:1.2.0
command: "StartBroker -zkAddress zookeeper:2181"
container_name: pinot_broker
restart: unless-stopped
ports:
- "18099:8099"
networks:
- factorhouse
profiles:
- pinot
environment:
JAVA_OPTS: "-Dplugins.dir=/opt/pinot/plugins -Xms1G -Xmx2G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xloggc:gc-pinot-broker.log"
depends_on:
pinot-controller:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8099/health || exit 1"]
interval: 5s
timeout: 5s
retries: 10
pinot-server:
image: apachepinot/pinot:1.2.0
command: "StartServer -zkAddress zookeeper:2181"
container_name: pinot_server
restart: unless-stopped
ports:
- "18098:8098"
networks:
- factorhouse
profiles:
- pinot
environment:
JAVA_OPTS: "-Dplugins.dir=/opt/pinot/plugins -Xms2G -Xmx3G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xloggc:gc-pinot-server.log -Dlog4j.configurationFile=file:/opt/pinot/conf/log4j2.properties"
volumes:
- ./resources/pinot/log4j2.properties:/opt/pinot/conf/log4j2.properties
depends_on:
pinot-broker:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"curl -f http://localhost:8097/health/readiness || exit 1",
]
interval: 5s
timeout: 5s
retries: 10
###### ClickHouse ######
ch-server:
image: clickhouse/clickhouse-server:25.6-alpine
container_name: ch_server
restart: on-failure
ports:
- 8123:8123 # http api
- 29000:9000 # native
networks:
- factorhouse
profiles:
- clickhouse
environment:
# default settings
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
volumes:
- ./resources/clickhouse/config.xml:/etc/clickhouse-server/config.xml
- ./resources/clickhouse/users.xml:/etc/clickhouse-server/users.xml
cloudbeaver:
image: dbeaver/cloudbeaver:latest
container_name: cloudbeaver
ports:
- "8978:8978"
volumes:
- ./resources/cloudbeaver/cloudbeaver.conf:/opt/cloudbeaver/conf/cloudbeaver.conf
- ./resources/cloudbeaver/initial-data.conf:/opt/cloudbeaver/conf/initial-data.conf
networks:
- factorhouse
profiles:
- clickhouse
- starrocks
environment:
CB_SERVER_URL: 1
###### StarRocks ######
starrocks-fe:
image: starrocks/fe-ubuntu:3.5-latest
container_name: starrocks-fe
user: root
command: |
bash /opt/starrocks/fe/bin/start_fe.sh --host_type FQDN
ports:
- 8030:8030
- 9020:9020
- 9030:9030
networks:
- factorhouse
profiles:
- starrocks
environment:
- AWS_ACCESS_KEY_ID=admin
- AWS_SECRET_ACCESS_KEY=password
- AWS_REGION=us-east-1
healthcheck:
test: 'mysql -u root -h starrocks-fe -P 9030 -e "SHOW FRONTENDS\G" |grep "Alive: true"'
interval: 10s
timeout: 5s
retries: 3
starrocks-be:
image: starrocks/be-ubuntu:3.5-latest
container_name: starrocks-be
user: root
command:
- /bin/bash
- -c
- |
ulimit -n 65535;
echo "# Enable data cache" >> /opt/starrocks/be/conf/be.conf
echo "block_cache_enable = true" >> /opt/starrocks/be/conf/be.conf
echo "block_cache_mem_size = 536870912" >> /opt/starrocks/be/conf/be.conf
echo "block_cache_disk_size = 1073741824" >> /opt/starrocks/be/conf/be.conf
sleep 15s
mysql --connect-timeout 2 -h starrocks-fe -P 9030 -u root -e "ALTER SYSTEM ADD BACKEND \"starrocks-be:9050\";"
bash /opt/starrocks/be/bin/start_be.sh
ports:
- 8040:8040
networks:
- factorhouse
profiles:
- starrocks
environment:
- HOST_TYPE=FQDN
healthcheck:
test: 'mysql -u root -h starrocks-fe -P 9030 -e "SHOW BACKENDS\G" |grep "Alive: true"'
interval: 10s
timeout: 5s
retries: 3
depends_on:
starrocks-fe:
condition: service_healthy
networks:
factorhouse:
external: ${USE_EXT:-true}
name: factorhouse