-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathdocker-compose.yml
89 lines (81 loc) · 2.71 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
version: "2"
# Only 'ch-server' and 'jdbc-bridge' are mandatory.
# You may remove any db-xxx to save memory.
services:
db-elasticsearch:
image: amazon/opendistro-for-elasticsearch:1.13.2
hostname: db-elasticsearch
environment:
# admin/admin
# curl -XGET https://localhost:9200 -u admin:admin --insecure
# curl -XGET https://localhost:9200/_cat/nodes?v -u admin:admin --insecure
# curl -XGET https://localhost:9200/_cat/plugins?v -u admin:admin --insecure
discovery.type: single-node
mem_limit: 768m
restart: always
db-mariadb10:
image: mariadb:10
hostname: db-mariadb10
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: root
mem_limit: 256m
restart: always
db-postgres13:
image: postgres:13
hostname: db-postgres13
environment:
POSTGRES_DB: test
POSTGRES_USER: sa
POSTGRES_PASSWORD: sa
mem_limit: 256m
restart: always
db-mysql5:
image: mysql:5
hostname: db-mysql5
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: root
mem_limit: 256m
restart: always
db-mysql8:
image: mysql:8
hostname: db-mysql8
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: root
mem_limit: 256m
restart: always
ch-server:
image: clickhouse/clickhouse-server:22.3
hostname: ch-server
volumes:
- ./ch-server/config:/etc/clickhouse-server/config.d
#- ./ch-server/data:/var/lib/clickhouse
#- ./ch-server/logs:/var/log/clickhouse
mem_limit: 256m
restart: always
jdbc-bridge:
image: clickhouse/jdbc-bridge:2.1
hostname: jdbc-bridge
# In general you don't need to define any environment variable
# Below are all default settings just for demonstration
environment:
CONFIG_DIR: config # configuration directory
SERIAL_MODE: "false" # whether run query in serial mode or not
HTTPD_CONFIG_FILE: httpd.json # httpd configuration file
SERVER_CONFIG_FILE: server.json # server configuration file
VERTX_CONFIG_FILE: vertx.json # vertx configuration file
DATASOURCE_CONFIG_DIR: datasources # named datasource directory
DRIVER_DIR: drivers # driver directory
EXTENSION_DIR: extensions # extension directory
QUERY_CONFIG_DIR: queries # named query directory
CUSTOM_DRIVER_LOADER: "true" # whether use custom driver loader or not
JDBC_BRIDGE_JVM_OPTS: # use CPU and memory allocated by container
# You may want to keep datasources, queries, SQL scripts, and maybe drivers in a git repo
volumes:
- ./jdbc-bridge/config:/app/config
- ./jdbc-bridge/drivers:/app/drivers
- ./jdbc-bridge/scripts:/app/scripts
mem_limit: 256m
restart: always