forked from XML-BSEP/Nishtagram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose2.yml
168 lines (146 loc) · 3.54 KB
/
docker-compose2.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
version: '3.8' # 2.4 is the last version that supports depends_on conditions for service health
volumes:
cassandra-data: {}
cassandra-post-data: {}
cassandra-ad-data: {}
cassandra-story-data: {}
redis-data: {}
redis.conf: {}
auth-redis-data: {}
auth-redis.conf: {}
follow-data: {}
search-data: {}
user-data: {}
auth-data: {}
webshop-mongo-data: {}
etc-krakend : {}
notification-data: {}
webshop-data: {}
webshop-redis-data: {}
webshop-redis.conf: {}
saga-redis-data: {}
saga-redis.conf: {}
message-data: {}
grafana: {}
story-data: {}
story-redis-data: {}
story-redis.conf: {}
post-data: {}
networks:
cassandra: # docker network where all cassandra nodes will be put in
node_net:
ipam:
driver: default
config:
- subnet: 172.29.0.0/16
demo:
services:
authpostgres:
image: postgres:latest
container_name: authpostgres
restart: always
ports:
- 5433:5432
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "root"
POSTGRES_DB: authentication
networks:
- demo
volumes:
- auth-data:/var/lib/auth
authredis:
image: "redis:alpine"
command: redis-server
ports:
- "6380:6379"
volumes:
- auth-redis-data:/var/lib/redis
- auth-redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- demo
sagaredis:
image: "redis:alpine"
command: redis-server
ports:
- "6381:6379"
volumes:
- saga-redis-data:/var/lib/redis
- saga-redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- demo
mongosearch:
image: 'mongo:4.2.6-bionic'
container_name: mongo-search
ports:
- "27019:27017"
volumes:
- search-data:/data/db
restart: always
networks:
- demo
mongouser:
image: 'mongo:4.2.6-bionic'
container_name: mongouser
ports:
- '27018:27017'
networks:
- demo
volumes:
- user-data:/data/db
restart: on-failure
mongonotification:
image: 'mongo:4.2.6-bionic'
container_name: mongonotification
ports:
- '27020:27017'
volumes:
- notification-data:/data/db
restart: on-failure
networks:
- demo
storyredis:
image: "redis:alpine"
command: redis-server
container_name: storyredis
ports:
- "6378:6379"
volumes:
- story-redis-data:/var/lib/redis
- story-redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- demo
restart: on-failure
mongomessage:
image: 'mongo:4.2.6-bionic'
container_name: mongomessage
ports:
- '27021:27017'
volumes:
- message-data:/data/db
restart: on-failure
mongofollow:
image: 'mongo:4.2.6-bionic'
container_name: mongofollow
ports:
- '27017:27017'
networks:
- demo
volumes:
- follow-data:/data/db
restart: on-failure
tracing:
image: jaegertracing/all-in-one
container_name: jaeger
ports:
- "6831:6831/udp"
- "6832:6832/udp"
- "16686:16686"
- "14268:14268"
- "14250:14250"