-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
127 lines (123 loc) · 2.92 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
version: '3.3'
services:
cassandra:
image: cassandra:latest
ports:
- '9042:9042'
- '7000:7000'
zoo1:
image: zookeeper:3.4.9
hostname: zoo1
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
ZOO_PORT: 2181
ZOO_SERVERS: server.1=zoo1:2888:3888
kafka1:
image: confluentinc/cp-kafka:5.5.1
hostname: kafka1
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka1:19092,LISTENER_DOCKER_EXTERNAL://host.docker.internal:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
KAFKA_BROKER_ID: 1
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zoo1
mongo-users:
image: 'mongo'
container_name: mongo-users
ports:
- "27555:27017"
mongo-default:
image: 'mongo'
container_name: mongo-users
ports:
- "27017:27017"
mongo-messages:
image: 'mongo'
container_name: mongo-messages
ports:
- "27097:27017"
redis:
image: "redis:alpine"
ports:
- "6379:6379"
config-server:
image: "shynggys/com.example.config-server:latest"
ports:
- "8888:8888"
eureka-server:
image: "shynggys/com.example.eureka-server:latest"
depends_on:
- config-server
ports:
- "8761:8761"
links:
- config-server
admin-server:
image: "shynggys/com.example.admin-server:latest"
depends_on:
- config-server
ports:
- "12345:12345"
links:
- config-server
gateway:
image: "shynggys/com.example.gateway:latest"
depends_on:
- config-server
environment:
- MONGO_PORT=27555
ports:
- "8080:8080"
links:
- config-server
- redis
- mongo-users
message-process-service:
image: "shynggys/com.example.message-process-service:latest"
depends_on:
- config-server
environment:
- INSTANCE_PORT=56984
- MONGO_PORT=27097
ports:
- "56984:56984"
links:
- config-server
- kafka1
- mongo-messages
- redis
message-delivery-service:
image: "shynggys/com.example.message-delivery-service:latest"
depends_on:
- config-server
environment:
- INSTANCE_PORT=45612
- MONGO_PORT=27097
ports:
- "45612:45612"
links:
- config-server
- kafka1
- mongo-messages
- redis
users-search-service:
image: "shynggys/com.example.users-search-service:latest"
depends_on:
- config-server
environment:
- INSTANCE_PORT=42112
- MONGO_PORT=27555
ports:
- "42112:42112"
links:
- config-server
- kafka1
- mongo-users