-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-all.yaml
151 lines (151 loc) · 3.66 KB
/
docker-compose-all.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
version: '3'
services:
api1:
image: nexus.prod.makeorg.tech/repository/docker-dev/make-api:master-latest
hostname: api1
ports:
- 9000:9000
- 4000:4000
environment:
- TCP_HOST=api1
- KAFKA_URI=kafka:9092
- AVRO_REGISTRY_URL=http://schema-registry:8081
- ES_URL=elasticsearch:9200
- JDBC_URL=jdbc:postgresql://cockroach:26257/makeapi
- ZOOKEEPER_URL=zookeeper:2181
- CASSANDRA_0=cassandra
networks:
- makeapi
depends_on:
- zookeeper
- kafka
- cockroach
- elasticsearch
- cassandra
api2:
image: nexus.prod.makeorg.tech/repository/docker-dev/make-api:master-latest
hostname: api2
ports:
- 19000:9000
- 14000:4000
environment:
- TCP_HOST=api2
- KAFKA_URI=kafka:9092
- AVRO_REGISTRY_URL=http://schema-registry:8081
- ES_URL=elasticsearch:9200
- JDBC_URL=jdbc:postgresql://cockroach:26257/makeapi
- ZOOKEEPER_URL=zookeeper:2181
- CASSANDRA_0=cassandra
networks:
- makeapi
depends_on:
- zookeeper
- kafka
- cockroach
- elasticsearch
- cassandra
- api1
api3:
image: nexus.prod.makeorg.tech/repository/docker-dev/make-api:master-latest
hostname: api3
ports:
- 29000:9000
- 24000:4000
environment:
- TCP_HOST=api3
- KAFKA_URI=kafka:9092
- AVRO_REGISTRY_URL=http://schema-registry:8081
- ES_URL=elasticsearch:9200
- JDBC_URL=jdbc:postgresql://cockroach:26257/makeapi
- ZOOKEEPER_URL=zookeeper:2181
- CASSANDRA_0=cassandra
networks:
- makeapi
depends_on:
- zookeeper
- kafka
- cockroach
- elasticsearch
- cassandra
- api2
elasticsearch:
image: makeorg/make-elasticsearch:6.8.2
hostname: elasticsearch
ports:
- 9200:9200
- 9300:9300
networks:
- makeapi
environment:
ES_JAVA_OPTS: '-Xms256M -Xmx256M'
xpack.security.enabled: "false"
http.host: elasticsearch
transport.host: localhost
healthcheck:
test: ["CMD", "curl", "-f", "http://elasticsearch:9200/_cluster/health"]
interval: 5s
timeout: 2s
retries: 3
zookeeper:
hostname: zookeeper
image: confluentinc/cp-zookeeper:5.0.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ports:
- 12181:2181
networks:
- makeapi
kafka:
image: confluentinc/cp-kafka:5.0.0
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181/kafka
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_BROKER_ID: 42
ports:
- 9092:9092
- 18081:8081
- 10000:9000
networks:
- makeapi
restart: on-failure:2
depends_on:
- zookeeper
schema-registry:
hostname: schema-registry
image: confluentinc/cp-schema-registry:5.0.0
depends_on:
- kafka
networks:
- makeapi
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181/kafka
SCHEMA_REGISTRY_LISTENERS: http://schema-registry:8081
restart: on-failure:3
cockroach:
image: cockroachdb/cockroach:v19.1.1
hostname: cockroach
command: start --insecure
ports:
- 26257:26257
networks:
- makeapi
cassandra:
image: cassandra:3.10
hostname: cassandra
ports:
- 7000:7000
- 9042:9042
environment:
JVM_OPTS: '-Xms256M -Xmx256M'
networks:
- makeapi
networks:
makeapi:
driver_opts:
'com.docker.network.driver.mtu': 1450
ipam:
driver: default
config:
- subnet: 192.168.200.0/24