-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
153 lines (142 loc) · 3.42 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
version: '3.9'
volumes:
rangiffler-mysql-data:
external: false
networks:
rangiffler-network:
driver: bridge
services:
rangiffler-all-db:
image: mysql:latest
container_name: rangiffler-all-db
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=secret
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 3s
retries: 5
interval: 3s
volumes:
- rangiffler-mysql-data:/var/lib/mysql
restart: always
networks:
- rangiffler-network
dns_search: .
zookeeper:
container_name: zookeeper
image: confluentinc/cp-zookeeper:7.3.2
expose:
- "2181"
environment:
- ZOOKEEPER_CLIENT_PORT=2181
- ZOOKEEPER_TICK_TIME=2000
networks:
- rangiffler-network
dns_search: .
kafka:
container_name: kafka
image: confluentinc/cp-kafka:7.3.2
expose:
- "9092"
depends_on:
zookeeper:
condition: service_started
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_TRANSACTION_STATE_LOG_MIN_ISR=1
- KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1
networks:
- rangiffler-network
dns_search: .
auth.rangiffler.dc:
container_name: auth.rangiffler.dc
image: razval/rangiffler-auth:latest
ports:
- "9000:9000"
healthcheck:
test: "wget --spider http://localhost:9000/actuator/health || exit 1"
interval: 5s
timeout: 5s
retries: 10
restart: always
depends_on:
rangiffler-all-db:
condition: service_healthy
kafka:
condition: service_started
networks:
- rangiffler-network
dns_search: .
gateway.rangiffler.dc:
container_name: gateway.rangiffler.dc
image: razval/rangiffler-gateway:latest
ports:
- "8080:8080"
healthcheck:
test: "wget --spider http://localhost:8080/actuator/health || exit 1"
interval: 5s
timeout: 5s
retries: 10
restart: always
depends_on:
- auth.rangiffler.dc
networks:
- rangiffler-network
dns_search: .
userdata.rangiffler.dc:
container_name: userdata.rangiffler.dc
image: razval/rangiffler-userdata:latest
expose:
- "9010"
restart: always
depends_on:
rangiffler-all-db:
condition: service_healthy
kafka:
condition: service_started
networks:
- rangiffler-network
dns_search: .
geo.rangiffler.dc:
container_name: geo.rangiffler.dc
image: razval/rangiffler-geo:latest
expose:
- "9020"
- "9021"
restart: always
depends_on:
rangiffler-all-db:
condition: service_healthy
networks:
- rangiffler-network
dns_search: .
photos.rangiffler.dc:
container_name: photos.rangiffler.dc
image: razval/rangiffler-photos:latest
expose:
- "9030"
- "9031"
restart: always
depends_on:
rangiffler-all-db:
condition: service_healthy
networks:
- rangiffler-network
dns_search: .
frontend.rangiffler.dc:
container_name: frontend.rangiffler.dc
image: razval/rangiffler-client:latest
ports:
- "80:80"
restart: always
depends_on:
gateway.rangiffler.dc:
condition: service_started
networks:
- rangiffler-network
dns_search: .