-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
192 lines (177 loc) · 6.98 KB
/
docker-compose.yaml
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
186
187
188
189
190
191
192
version: '3.9'
services:
api-gateway:
image: envoyproxy/envoy:distroless-v1.29-latest
ports:
- "9901:9901"
- "80:8081"
extra_hosts:
- "host.docker.internal:host-gateway"
- "api-local.studycrm.com:0.0.0.0"
volumes:
- ./envoy.yaml:/etc/envoy/envoy.yaml
auth-service:
build:
context: ./auth-service/auth-service-main/
ports:
- "10081:8081"
depends_on:
- auth-service-mysql
- kafka
- zookeeper
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://auth-service-mysql/auth_service
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
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
EVENTUATE_DATABASE_SCHEMA: eventuate
auth-service-mysql:
image: eventuateio/eventuate-mysql8:${EVENTUATE_COMMON_VERSION?}
ports:
- 3309:3306
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- MYSQL_DATABASE=auth_service
entity-service:
build:
context: ./entity-service/entity-service-main/
ports:
- "10083:8083"
depends_on:
- entity-service-mysql
- kafka
- zookeeper
extra_hosts:
- "api-local.studycrm.com:host-gateway"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://entity-service-mysql/entity_service
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
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
EVENTUATE_DATABASE_SCHEMA: eventuate
entity-service-mysql:
image: eventuateio/eventuate-mysql8:${EVENTUATE_COMMON_VERSION?}
ports:
- 3307:3306
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- MYSQL_DATABASE=entity_service
organization-service:
build:
context: ./organization-service/organization-service-main/
ports:
- "10082:8082"
depends_on:
- organization-service-mysql
- kafka
- zookeeper
extra_hosts:
- "api-local.studycrm.com:host-gateway"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://organization-service-mysql/organization_service
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
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
EVENTUATE_DATABASE_SCHEMA: eventuate
organization-service-mysql:
image: eventuateio/eventuate-mysql8:${EVENTUATE_COMMON_VERSION?}
ports:
- 3308:3306
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- MYSQL_DATABASE=organization_service
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
zookeeper:
image: eventuateio/eventuate-zookeeper:${EVENTUATE_COMMON_VERSION?}
ports:
- 2181:2181
environment:
ZOOKEEPER_CLIENT_PORT: 2181
KAFKA_HEAP_OPTS: -Xmx64m
zipkin:
image: openzipkin/zipkin:2.23
ports:
- "9411:9411"
environment:
JAVA_OPTS: -Xmx64m
cdc-service:
image: eventuateio/eventuate-cdc-service:${EVENTUATE_CDC_VERSION?}
ports:
- "8099:8080"
depends_on:
- auth-service-mysql
- organization-service-mysql
- kafka
- zookeeper
environment:
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
EVENTUATE_CDC_READER_READER1_TYPE: mysql-binlog
EVENTUATE_CDC_READER_READER1_DATASOURCEURL: jdbc:mysql://auth-service-mysql:3306/auth_service
EVENTUATE_CDC_READER_READER1_MONITORINGSCHEMA: eventuate
EVENTUATE_CDC_READER_READER1_DATASOURCEUSERNAME: root
EVENTUATE_CDC_READER_READER1_DATASOURCEPASSWORD: rootpassword
EVENTUATE_CDC_READER_READER1_DATASOURCEDRIVERCLASSNAME: com.mysql.cj.jdbc.Driver
EVENTUATE_CDC_READER_READER1_LEADERSHIPLOCKPATH: /eventuate/cdc/leader/auth_service
EVENTUATE_CDC_READER_READER1_CDCDBUSERNAME: root
EVENTUATE_CDC_READER_READER1_CDCDBPASSWORD: rootpassword
EVENTUATE_CDC_READER_READER1_READOLDDEBEZIUMDBOFFSETSTORAGETOPIC: "false"
EVENTUATE_CDC_READER_READER1_MYSQLBINLOGCLIENTUNIQUEID: 1
EVENTUATE_CDC_READER_READER1_OFFSETSTOREKEY: MySqlBinlogAuthService
EVENTUATE_CDC_READER_READER1_OFFSETSTORAGETOPICNAME: db.history.common
EVENTUATE_CDC_READER_READER1_OUTBOXID: 1
EVENTUATE_CDC_READER_READER2_TYPE: mysql-binlog
EVENTUATE_CDC_READER_READER2_DATASOURCEURL: jdbc:mysql://organization-service-mysql:3306/organization_service
EVENTUATE_CDC_READER_READER2_MONITORINGSCHEMA: eventuate
EVENTUATE_CDC_READER_READER2_DATASOURCEUSERNAME: root
EVENTUATE_CDC_READER_READER2_DATASOURCEPASSWORD: rootpassword
EVENTUATE_CDC_READER_READER2_DATASOURCEDRIVERCLASSNAME: com.mysql.cj.jdbc.Driver
EVENTUATE_CDC_READER_READER2_LEADERSHIPLOCKPATH: /eventuate/cdc/leader/organization_service
EVENTUATE_CDC_READER_READER2_CDCDBUSERNAME: root
EVENTUATE_CDC_READER_READER2_CDCDBPASSWORD: rootpassword
EVENTUATE_CDC_READER_READER2_READOLDDEBEZIUMDBOFFSETSTORAGETOPIC: "false"
EVENTUATE_CDC_READER_READER2_MYSQLBINLOGCLIENTUNIQUEID: 2
EVENTUATE_CDC_READER_READER2_OFFSETSTOREKEY: MySqlBinlogOrganizationService
EVENTUATE_CDC_READER_READER2_OFFSETSTORAGETOPICNAME: db.history.common
EVENTUATE_CDC_READER_READER2_OUTBOXID: 2
EVENTUATE_CDC_PIPELINE_PIPELINE1_TYPE: eventuate-tram
EVENTUATE_CDC_PIPELINE_PIPELINE1_READER: reader1
EVENTUATE_CDC_PIPELINE_PIPELINE1_EVENTUATEDATABASESCHEMA: eventuate
EVENTUATE_CDC_PIPELINE_PIPELINE2_TYPE: eventuate-tram
EVENTUATE_CDC_PIPELINE_PIPELINE2_READER: reader2
EVENTUATE_CDC_PIPELINE_PIPELINE2_EVENTUATEDATABASESCHEMA: eventuate