-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
164 lines (151 loc) · 3.62 KB
/
docker-compose-dev.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
version: '3'
services:
user-service:
image: adsbrecorder/user-service:1.0.0
ports:
- "7082:8082"
restart: always
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mariadb:3306/${MARIADB_NAME}
SPRING_DATASOURCE_USERNAME: ${MARIADB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${MARIADB_PASSWORD}
depends_on:
- mariadb
networks:
- backend
client-service:
image: adsbrecorder/client-service:1.0.0
ports:
- "7081:8081"
restart: always
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mariadb:3306/${MARIADB_NAME}
SPRING_DATASOURCE_USERNAME: ${MARIADB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${MARIADB_PASSWORD}
depends_on:
- mariadb
networks:
- backend
report-service:
image: adsbrecorder/report-service:1.0.0
ports:
- "7086:8086"
restart: always
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mariadb:3306/${MARIADB_NAME}
SPRING_DATASOURCE_USERNAME: ${MARIADB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${MARIADB_PASSWORD}
depends_on:
- mariadb
- mongodb
networks:
- backend
data-service:
image: adsbrecorder/data-service:1.0.0
ports:
- "7084:8084"
restart: always
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mariadb:3306/${MARIADB_NAME}
SPRING_DATASOURCE_USERNAME: ${MARIADB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${MARIADB_PASSWORD}
depends_on:
- mariadb
- mongodb
networks:
- backend
receiver-service:
image: adsbrecorder/receiver-service:1.0.0
ports:
- "7083:8083"
restart: always
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mariadb:3306/${MARIADB_NAME}
SPRING_DATASOURCE_USERNAME: ${MARIADB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${MARIADB_PASSWORD}
depends_on:
- mariadb
- mongodb
- kafka
networks:
- backend
data-interleaving-service:
image: adsbrecorder/data-interleaving-service:1.0.0
restart: always
depends_on:
- mongodb
- kafka
networks:
- backend
realtime-service:
image: adsbrecorder/realtime-service:1.0.0
ports:
- "7085:8085"
restart: always
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mariadb:3306/${MARIADB_NAME}
SPRING_DATASOURCE_USERNAME: ${MARIADB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${MARIADB_PASSWORD}
depends_on:
- mariadb
- mongodb
- kafka
networks:
- backend
mariadb:
image: mariadb:latest
ports:
- "3306:3306"
restart: always
environment:
MYSQL_DATABASE: ${MARIADB_NAME}
MYSQL_USER: ${MARIADB_USERNAME}
MYSQL_PASSWORD: ${MARIADB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
volumes:
- sql_data:/var/lib/mysql
networks:
- backend
mongodb:
image: mongo:latest
ports:
- "27017:27017"
restart: always
volumes:
- mongo_data:/var/lib/mongo
networks:
- backend
zookeeper:
image: 'bitnami/zookeeper:3'
ports:
- '2181:2181'
volumes:
- 'zookeeper_data:/bitnami'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- backend
kafka:
image: 'bitnami/kafka:2'
ports:
- '9092:9092'
volumes:
- 'kafka_data:/bitnami'
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
networks:
- backend
volumes:
sql_data:
driver: local
mongo_data:
driver: local
zookeeper_data:
driver: local
kafka_data:
driver: local
networks:
backend: