-
Notifications
You must be signed in to change notification settings - Fork 83
/
docker-compose.yml
126 lines (114 loc) · 4.81 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
version: '3.8'
services:
##########################################################################################################
# ClickHouse single node (CH driver + Metabase tests)
##########################################################################################################
clickhouse:
image: 'clickhouse/clickhouse-server:24.4-alpine'
container_name: 'metabase-driver-clickhouse-server'
ports:
- '8123:8123'
- '9000:9000'
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- './.docker/clickhouse/single_node/config.xml:/etc/clickhouse-server/config.xml'
- './.docker/clickhouse/single_node/users.xml:/etc/clickhouse-server/users.xml'
##########################################################################################################
# ClickHouse single node (CH driver TLS tests only)
##########################################################################################################
clickhouse_tls:
build:
context: ./
dockerfile: .docker/clickhouse/single_node_tls/Dockerfile
container_name: 'metabase-driver-clickhouse-server-tls'
ports:
- '8443:8443'
- '9440:9440'
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- './.docker/clickhouse/single_node_tls/config.xml:/etc/clickhouse-server/config.xml'
- './.docker/clickhouse/single_node_tls/users.xml:/etc/clickhouse-server/users.xml'
hostname: server.clickhouseconnect.test
##########################################################################################################
# Older ClickHouse version (CH driver tests only)
# For testing pre-23.8 string functions switch between UTF8 and non-UTF8 versions (see clickhouse_qp.clj)
##########################################################################################################
clickhouse_older_version:
image: 'clickhouse/clickhouse-server:23.3-alpine'
container_name: 'metabase-driver-clickhouse-server-older-version'
ports:
- '8124:8123'
- '9001:9000'
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- './.docker/clickhouse/single_node/config.xml:/etc/clickhouse-server/config.xml'
- './.docker/clickhouse/single_node/users.xml:/etc/clickhouse-server/users.xml'
##########################################################################################################
# ClickHouse cluster (CH driver SET ROLE tests only)
# See test/metabase/driver/clickhouse_set_role.clj
##########################################################################################################
clickhouse_cluster_node1:
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-24.4-alpine}'
ulimits:
nofile:
soft: 262144
hard: 262144
hostname: clickhouse1
container_name: metabase-driver-clickhouse-cluster-node-1
ports:
- '8125:8123'
- '9002:9000'
- '9181:9181'
volumes:
- './.docker/clickhouse/cluster/server1_config.xml:/etc/clickhouse-server/config.xml'
- './.docker/clickhouse/cluster/server1_macros.xml:/etc/clickhouse-server/config.d/macros.xml'
- './.docker/clickhouse/users.xml:/etc/clickhouse-server/users.xml'
clickhouse_cluster_node2:
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-24.4-alpine}'
ulimits:
nofile:
soft: 262144
hard: 262144
hostname: clickhouse2
container_name: metabase-driver-clickhouse-cluster-node-2
ports:
- '8126:8123'
- '9003:9000'
- '9182:9181'
volumes:
- './.docker/clickhouse/cluster/server2_config.xml:/etc/clickhouse-server/config.xml'
- './.docker/clickhouse/cluster/server2_macros.xml:/etc/clickhouse-server/config.d/macros.xml'
- './.docker/clickhouse/users.xml:/etc/clickhouse-server/users.xml'
# Using Nginx as a cluster entrypoint and a round-robin load balancer for HTTP requests
# See .docker/nginx/local.conf for the configuration
nginx:
image: 'nginx:1.23.1-alpine'
hostname: nginx
ports:
- '8127:8123'
volumes:
- './.docker/nginx/local.conf:/etc/nginx/conf.d/local.conf'
container_name: metabase-nginx
##########################################################################################################
# Metabase
##########################################################################################################
metabase:
image: metabase/metabase-enterprise:v1.49.12
container_name: metabase-with-clickhouse-driver
environment:
'MB_HTTP_TIMEOUT': '5000'
'JAVA_TIMEZONE': 'UTC'
ports:
- '3000:3000'
volumes:
- '../../../resources/modules/clickhouse.metabase-driver.jar:/plugins/clickhouse.jar'
- './.docker/clickhouse/single_node_tls/certificates/ca.crt:/certs/ca.crt'