-
Notifications
You must be signed in to change notification settings - Fork 301
/
docker-compose-snapshots-mysql-binlog.yml
executable file
·141 lines (131 loc) · 4.36 KB
/
docker-compose-snapshots-mysql-binlog.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
version: '3'
services:
order-service:
build:
context: ./order-service/
args:
serviceImageVersion: ${SERVICE_IMAGE_VERSION}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
image: eventuateexamples/eventuate-tram-examples-customers-and-orders-order-service
ports:
- "8081:8080"
depends_on:
- mysql
- kafka
- zookeeper
- cdc-service
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/eventuate
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.cj.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
CDC_SERVICE_URL: http://cdc-service:8080
customer-service:
build:
context: ./customer-service/
args:
serviceImageVersion: ${SERVICE_IMAGE_VERSION}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
image: eventuateexamples/eventuate-tram-examples-customers-and-orders-customer-service
ports:
- "8082:8080"
depends_on:
- mysql
- kafka
- zookeeper
- cdc-service
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/eventuate
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.cj.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
CDC_SERVICE_URL: http://cdc-service:8080
zookeeper:
image: eventuateio/eventuate-zookeeper:${EVENTUATE_COMMON_VERSION?}
ports:
- 2181:2181
environment:
ZOOKEEPER_CLIENT_PORT: 2181
KAFKA_HEAP_OPTS: -Xmx64m
kafka:
image: "eventuateio/eventuate-kafka:${EVENTUATE_MESSAGING_KAFKA_IMAGE_VERSION?}"
ports:
- 9092:9092
- 29092:29092
depends_on:
- zookeeper
environment:
KAFKA_LISTENERS: LC://kafka:29092,LX://kafka:9092
KAFKA_ADVERTISED_LISTENERS: LC://kafka:29092,LX://${DOCKER_HOST_IP:-localhost}:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LC:PLAINTEXT,LX:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LC
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_HEAP_OPTS: -Xmx192m
mysql:
image: eventuateio/eventuate-mysql8:${EVENTUATE_COMMON_VERSION?}
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
cdc-service:
image: eventuateio/eventuate-cdc-service:${EVENTUATE_CDC_VERSION?}
ports:
- "8099:8080"
depends_on:
- mysql
- kafka
- zookeeper
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/eventuate
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.cj.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
EVENTUATELOCAL_CDC_DB_USER_NAME: root
EVENTUATELOCAL_CDC_DB_PASSWORD: rootpassword
EVENTUATELOCAL_CDC_READER_NAME: MySqlReader
EVENTUATELOCAL_CDC_MYSQL_BINLOG_CLIENT_UNIQUE_ID: 1234567890
EVENTUATELOCAL_CDC_READ_OLD_DEBEZIUM_DB_OFFSET_STORAGE_TOPIC: "false"
EVENTUATE_CDC_KAFKA_ENABLE_BATCH_PROCESSING: ${EVENTUATE_CDC_KAFKA_ENABLE_BATCH_PROCESSING}
EVENTUATE_OUTBOX_ID: 1
JAVA_OPTS: -Xmx64m
order-history-text-search-service:
build:
context: ./order-history-text-search-service/
args:
serviceImageVersion: ${SERVICE_IMAGE_VERSION}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
image: eventuateexamples/eventuate-tram-examples-customers-and-orders-order-history-text-search-service
ports:
- "8084:8080"
depends_on:
- kafka
- zookeeper
- elasticsearch
environment:
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: 9300
elasticsearch:
image: elasticsearch:7.17.3
environment:
- http.host=0.0.0.0
- network.publish_host=0.0.0.0
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms128m -Xmx128m"
ports:
- "9200:9200"
- "9300:9300"
zipkin:
image: openzipkin/zipkin:2.23
ports:
- "9411:9411"
environment:
JAVA_OPTS: -Xmx64m