forked from microservices-patterns/ftgo-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·203 lines (201 loc) · 6.83 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
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
193
194
195
196
197
198
199
200
201
202
203
version: '3'
services:
zookeeper:
image: eventuateio/eventuateio-local-zookeeper:0.21.0.RELEASE
ports:
- 2181:2181
- 2888:2888
- 3888:3888
kafka:
image: eventuateio/eventuateio-local-kafka:0.21.0.RELEASE
ports:
- 9092:9092
depends_on:
- zookeeper
environment:
- ADVERTISED_HOST_NAME=${DOCKER_HOST_IP}
- KAFKA_HEAP_OPTS=-Xmx192m -Xms192m
- ZOOKEEPER_SERVERS=zookeeper:2181
mysql:
build: ./mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
tram-cdc-service:
image: eventuateio/eventuate-tram-cdc-mysql-service:0.10.0.RELEASE
ports:
- "8099:8080"
depends_on:
- mysql
- kafka
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/eventuate
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
EVENTUATELOCAL_CDC_DB_USER_NAME: root
EVENTUATELOCAL_CDC_DB_PASSWORD: rootpassword
EVENTUATELOCAL_CDC_BINLOG_CLIENT_ID: 1234567890
EVENTUATELOCAL_CDC_SOURCE_TABLE_NAME: message
eventuate-local-cdc-service:
image: eventuateio/eventuateio-local-new-cdc-service:0.21.0.RELEASE
ports:
- "8098:8080"
depends_on:
- mysql
- kafka
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/eventuate
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
EVENTUATELOCAL_CDC_DB_USER_NAME: root
EVENTUATELOCAL_CDC_DB_PASSWORD: rootpassword
EVENTUATELOCAL_CDC_LEADERSHIP_LOCK_PATH: /eventuatelocal/cdc/leader1
ftgo-consumer-service:
build: ./ftgo-consumer-service
ports:
- "8081:8080"
depends_on:
- mysql
- kafka
- tram-cdc-service
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/ftgoconsumerservice
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
ftgo-order-service:
build: ./ftgo-order-service
ports:
- "8082:8080"
depends_on:
- mysql
- kafka
- tram-cdc-service
- zipkin
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/ftgoorderservice
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
ftgo-kitchen-service:
build: ./ftgo-kitchen-service
ports:
- "8083:8080"
depends_on:
- mysql
- kafka
- zookeeper
- tram-cdc-service
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/ftgokitchenservice
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
ftgo-restaurant-service:
build: ./ftgo-restaurant-service
ports:
- "8084:8080"
depends_on:
- mysql
- kafka
- zookeeper
- tram-cdc-service
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/ftgorestaurantservice
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
ftgo-accounting-service:
build: ./ftgo-accounting-service
ports:
- "8085:8080"
depends_on:
- mysql
- kafka
- zookeeper
- eventuate-local-cdc-service
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/ftgoaccountingservice
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
JAVA_OPTS: -Xmx192m
ftgo-order-history-service:
build: ./ftgo-order-history-service
ports:
- "8086:8080"
depends_on:
- kafka
- zookeeper
- tram-cdc-service
- dynamodblocal
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/ftgoorderhistoryservice
SPRING_DATASOURCE_USERNAME: mysqluser
SPRING_DATASOURCE_PASSWORD: mysqlpw
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.jdbc.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DYNAMODB_ENDPOINT_URL: http://dynamodblocal:8000
AWS_REGION: $AWS_REGION
JAVA_OPTS: -Xmx192m
ftgo-api-gateway:
build: ./ftgo-api-gateway
ports:
- "8087:8080"
environment:
ORDER_DESTINATIONS_ORDERSERVICEURL: http://ftgo-order-service:8080
ORDER_DESTINATIONS_ORDERHISTORYSERVICEURL: http://ftgo-order-history-service:8080
CONSUMER_DESTINATIONS_CONSUMERSERVICEURL: http://ftgo-consumer-service:8080
JAVA_OPTS: -Xmx192m
SPRING_SLEUTH_ENABLED: "true"
SPRING_SLEUTH_SAMPLER_PROBABILITY: 1
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411/
ftgo-api-gateway-graphql:
build: ./ftgo-api-gateway-graphql
ports:
- "8088:3000"
environment:
ORDER_HISTORY_SERVICE_URL: http://ftgo-order-history-service:8080
CONSUMER_SERVICE_URL: http://ftgo-consumer-service:8080
RESTAURANT_SERVICE_URL: http://ftgo-restaurant-service:8080
zipkin:
image: openzipkin/zipkin:2.5.0
ports:
- "9411:9411"
environment:
JAVA_OPTS: -Xmx128m
dynamodblocal:
build: ./dynamodblocal
ports:
- "8000:8000"
environment:
JAVA_OPTS: -Xmx128m