-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yaml
165 lines (152 loc) · 4.1 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
version: '3'
services:
eureka:
image: elvaliev/server
ports:
- "8761:8761"
expose:
- 8761
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "localhost:8761/actuator/health 2>&1 | grep UP || exit 1"]
interval: 30s
timeout: 10s
retries: 5
config:
image: elvaliev/config
ports:
- "8088:8088"
depends_on:
- eureka
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "localhost:8088/actuator/health 2>&1 | grep UP || exit 1"]
interval: 30s
timeout: 10s
retries: 5
gateway:
restart: on-failure
image: elvaliev/gateway
ports:
- "8008:8008"
depends_on:
- eureka
- config
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SPRING_CLOUD_CONFIG_URI: http://config:8088
SPRING_PROFILES_ACTIVE: prod
SERVER_PORT: 8008
ZUUL_PREFIX: /api
account:
restart: on-failure
image: elvaliev/account
ports:
- "8081:8081"
depends_on:
- eureka
- config
- zookeeper
- kafka
- postgres
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SERVER_PORT: 8081
SPRING_CLOUD_CONFIG_URI: http://config:8088
SPRING_PROFILES_ACTIVE: prod
store:
restart: on-failure
image: elvaliev/store
ports:
- "8082:8082"
depends_on:
- eureka
- config
- zookeeper
- kafka
- postgres
environment:
SERVER_PORT: 8083
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SPRING_CLOUD_CONFIG_URI: http://config:8088
SPRING_PROFILES_ACTIVE: prod
order:
restart: on-failure
image: elvaliev/order
ports:
- "8083:8083"
depends_on:
- eureka
- config
- zookeeper
- kafka
- postgres
environment:
SERVER_PORT: 8083
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SPRING_CLOUD_CONFIG_URI: http://config:8088
SPRING_PROFILES_ACTIVE: prod
delivery:
restart: on-failure
image: elvaliev/delivery
ports:
- "8084:8084"
depends_on:
- eureka
- config
- zookeeper
- kafka
- postgres
environment:
SERVER_PORT: 8084
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SPRING_CLOUD_CONFIG_URI: http://config:8088
SPRING_PROFILES_ACTIVE: prod
zookeeper:
image: confluentinc/cp-zookeeper:5.2.4
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
KAFKA_HEAP_OPTS: -Xmx64m
kafka:
image: "confluentinc/cp-kafka:5.2.4"
ports:
- "9092:9092"
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
postgres:
image: eventuateio/eventuate-tram-sagas-postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: eventuate
POSTGRES_PASSWORD: eventuate
cdcservice:
image: eventuateio/eventuate-cdc-service:0.6.0.RC3
ports:
- "8099:8080"
depends_on:
- postgres
- kafka
- zookeeper
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres/eventuate
SPRING_DATASOURCE_USERNAME: eventuate
SPRING_DATASOURCE_PASSWORD: eventuate
SPRING_DATASOURCE_TEST_ON_BORROW: "true"
SPRING_DATASOURCE_VALIDATION_QUERY: SELECT 1
SPRING_DATASOURCE_DRIVER_CLASS_NAME: org.postgresql.Driver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
EVENTUATELOCAL_CDC_READER_NAME: PostgresPollingReader
SPRING_PROFILES_ACTIVE: EventuatePolling
JAVA_OPTS: -Xmx64m