-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDocker-compose.yml
137 lines (137 loc) · 3.64 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
version: '3'
services:
db:
image: 'mysql:5.7.28'
volumes:
- '$PWD/docker/mysql/my.cnf:/etc/my.cnf'
- '$PWD/docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
- '$PWD/data/mysql:/var/lib/mysql'
restart: 'always'
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: 'pass'
MYSQL_DATABASE: 'db'
# MYSQL_USER: 'canal'
# MYSQL_PASSWORD: 'canal'
canal:
image: 'canal/canal-server'
environment:
- canal.auto.scan=false
- canal.destinations=example
- canal.instance.master.address=db:3306
- canal.instance.dbUsername=canal
- canal.instance.dbPassword=canal
- canal.instance.connectionCharset=UTF-8
- canal.instance.tsdb.enable=true
- canal.instance.gtidon=false
# mq configuration
- canal.mq.topic=example
- canal.mq.partition=0
- canal.serverMode=kafka
- canal.mq.servers=kafka:9092
- canal.mq.flatMessage=true
# canal admin
# - canal.admin.manager='canal_admin:8089'
# - canal.admin.port=11110
# - canal.admin.user=admin
# - canal.admin.passwd=4ACFE3202A5FF5CF467898FC58AAB1D615029441
- HOSTNAME=172.20.10.10
volumes:
- '$PWD/docker/canal/canal.properties:/home/admin/canal-server/conf/canal.properties'
- '$PWD/docker/canal.adapter-1.1.4:/home/admin/canal-adapter-1.1.4'
depends_on:
- db
- kafka
canal_admin:
image: 'canal/canal-admin:v1.1.4'
environment:
- canal.adminUser=admin
- canal.adminPasswd=admin
- server.port=8089
- HOSTNAME=172.20.10.10
ports:
- 8089:8089
zoo1:
image: zookeeper
restart: always
hostname: zoo1
ports:
- 2181:2181
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888;2181
ZOO_4LW_COMMANDS_WHITELIST: '*'
# zoo2:
# image: zookeeper
# restart: always
# hostname: zoo2
# ports:
# - 2182:2181
# environment:
# ZOO_MY_ID: 2
# ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=0.0.0.0:2888:3888;2181 server.3=zoo3:2888:3888;2181
# ZOO_4LW_COMMANDS_WHITELIST: '*'
# depends_on:
# - zoo1
# zoo3:
# image: zookeeper
# restart: always
# hostname: zoo3
# ports:
# - 2183:2181
# environment:
# ZOO_MY_ID: 3
# ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=0.0.0.0:2888:3888;2181
# ZOO_4LW_COMMANDS_WHITELIST: '*'
# depends_on:
# - zoo1
zkui:
image: 'tobilg/zookeeper-webui'
ports:
- 8080:8080
environment:
- ZK_DEFAULT_NODE=zoo1:2181/
- USER=admin
- PASSWORD=pass
depends_on:
- zoo1
zkui2:
image: 'juris/zkui'
ports:
- 9090:9090
environment:
- ZK_SERVER=zoo1:2181/
depends_on:
- zoo1
kafka:
image: wurstmeister/kafka:latest
ports:
- "9092:9092"
expose:
- "9093"
environment:
KAFKA_ADVERTISED_HOST_NAME: 172.20.10.10
KAFKA_CREATE_TOPICS: "test:1:1"
KAFKA_ZOOKEEPER_CONNECT: zoo1:2181
KAFKA_BROKER_ID: 0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zoo1
elkx:
image: sebp/elkx
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
environment:
# for setting up password in the beginning: $ES_HOME/bin/x-pack/setup-passwords interactive
# - ELASTIC_BOOTSTRAP_PASSWORD="changeme"
- ELASTICSEARCH_USER=elastic
- ELASTICSEARCH_PASSWORD=changeme
- LOGSTASH_USER=elastic
- LOGSTASH_PASSWORD=changeme
- KIBANA_USER=kibana
- KIBANA_PASSWORD=changeme
- DEVELOPMENT_MODE=1