-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
196 lines (180 loc) · 4.68 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
version: '3.8'
services:
security-service-postgres:
container_name: security-service-postgres
hostname: security-service-postgres
image: postgres:alpine3.17
restart: always
ports:
- '5433:5432'
environment:
POSTGRES_DB: security
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data
volumes:
- db-postgres-security:/data
recipient-service-postgres:
container_name: recipient-service-postgres
hostname: recipient-service-postgres
image: postgres:alpine3.17
restart: always
ports:
- '5435:5432'
environment:
POSTGRES_DB: recipient
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data
volumes:
- db-postgres-recipient:/data
template-service-postgres:
container_name: template-service-postgres
hostname: template-service-postgres
image: postgres:alpine3.17
restart: always
ports:
- '5434:5432'
environment:
POSTGRES_DB: template
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data
command:
- "postgres"
- "-c"
- "wal_level=logical"
volumes:
- db-postgres-template:/data
notification-service-postgres:
container_name: notification-service-postgres
hostname: notification-service-postgres
image: postgres:alpine3.17
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_DB: notification
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data
volumes:
- db-postgres-notification:/data
shortener-service-postgres:
container_name: shortener-service-postgres
hostname: shortener-service-postgres
image: postgres:alpine3.17
restart: always
ports:
- '5436:5432'
environment:
POSTGRES_DB: shortener
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data
volumes:
- db-postgres-shortener:/data
zookeeper:
image: confluentinc/cp-zookeeper:7.3.2
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
broker:
image: confluentinc/cp-kafka:7.3.2
container_name: broker
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092,PLAINTEXT_INTERNAL://broker:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
discovery-server:
image: v1acheslav/discovery-server:1.0.1
restart: always
ports:
- '8761:8761'
api-gateway:
image: v1acheslav/api-gateway:1.0.1
restart: always
ports:
- '8080:8080'
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- discovery-server
security-service:
image: v1acheslav/security-service:1.0.5
restart: always
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- security-service-postgres
- discovery-server
- api-gateway
recipient-service:
image: v1acheslav/recipient-service:1.0.3
restart: always
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- recipient-service-postgres
- discovery-server
- api-gateway
- zookeeper
- broker
template-service:
image: v1acheslav/template-service:1.0.3
restart: always
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- template-service-postgres
- discovery-server
- api-gateway
- zookeeper
- broker
notification-service:
image: v1acheslav/notification-service:1.0.3
restart: always
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- notification-service-postgres
- discovery-server
- api-gateway
- zookeeper
- broker
sender-service:
image: v1acheslav/sender-service:1.0.3
restart: always
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- discovery-server
- zookeeper
- broker
file-service:
image: v1acheslav/file-service:1.0.1
restart: always
environment:
- SPRING_PROFILES_ACTIVE=docker
depends_on:
- discovery-server
- api-gateway
telegram-bot-service:
image: v1acheslav/telegram-bot-service:1.0.1
restart: always
volumes:
db-postgres: { }
db-postgres-security: { }
db-postgres-template: { }
db-postgres-recipient: { }
db-postgres-notification: { }
db-postgres-shortener: { }