-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.override.yml
192 lines (170 loc) · 4.19 KB
/
docker-compose.override.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
version: '3.3'
name: realestate-microservices
networks:
backend:
driver: bridge
services:
# API GATEWAY
api-gateway:
container_name: api-gateway
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ElasticConfiguration:Uri=http://elasticsearch:9200"
image: ${DOCKER_REGISTRY-}api-gateway
build:
context: .
dockerfile: RealEstate.ApiGateway/Dockerfile
ports:
- 9000:9000
networks:
- backend
# MICROSERVICES
# Clients Microservice
api.clients:
container_name: api.clients
image: ${DOCKER_REGISTRY-}api.clients
build:
context: .
dockerfile: Microservices/ClientsMicroservice/Dockerfile
networks:
- backend
ports:
- 9001:9001
# Contracts Microservice
api.contracts:
container_name: api.contracts
image: ${DOCKER_REGISTRY-}api.contracts
build:
context: .
dockerfile: Microservices/ContractsMicroservice/Dockerfile
networks:
- backend
ports:
- 9002:9002
# Estates Microservice
api.estates:
container_name: api.estates
image: ${DOCKER_REGISTRY-}api.estates
build:
context: .
dockerfile: Microservices/EstatesMicroservice/Dockerfile
networks:
- backend
ports:
- 9003:9003
# External APIs Microservice :9004
api.external:
container_name: api.external
image: ${DOCKER_REGISTRY-}api.external
build:
context: .
dockerfile: Microservices/ExternalAPIsMicroservice/Dockerfile
networks:
- backend
ports:
- 9004:9004
# Listings Microservice
api.listings:
container_name: api.listings
image: ${DOCKER_REGISTRY-}api.listings
build:
context: .
dockerfile: Microservices/ListingsMicroservice/Dockerfile
networks:
- backend
ports:
- 9005:9005
# Messaging Microservice
api.messaging:
container_name: api.messaging
image: ${DOCKER_REGISTRY-}api.messaging
build:
context: .
dockerfile: Microservices/MessagingMicroservice/Dockerfile
networks:
- backend
ports:
- 9006:9006
# Utilities Microservice
api.utilities:
container_name: api.utilities
image: ${DOCKER_REGISTRY-}api.utilities
build:
context: .
dockerfile: Microservices/UtilitiesMicroservice/Dockerfile
networks:
- backend
ports:
- 9007:9007
# DATABASES: PostgreSQL + Keycloak + Redis
db.realestate:
container_name: db.realestate
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=RealEstate
- RealEstate_DB_Connection=Server=localhost;Port=5000;Database=RealEstate;User Id=admin;Password=admin;
restart: always
ports:
- "5000:5000"
volumes:
- re_data:/var/lib/postgresql/realestate/
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:19.0.1
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
command: [ 'start-dev' ]
ports:
- 8080:8080
db.messages:
container_name: db.messages
restart: always
ports:
- "6379:6379"
# UTILITIES:
util.rabbitmq:
container_name: util.rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
util.pgadmin:
container_name: util.pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=admin1234
restart: always
ports:
- "5050:80"
volumes:
- pgadmin_data:/root/.pgadmin
util.portainer:
container_name: util.portainer
restart: always
ports:
- "9090:9090"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
#Logging stack:
util.elasticsearch:
container_name: util.elasticsearch
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ports:
- "9200:9200"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
util.kibana:
container_name: util.kibana
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- util.elasticsearch
ports:
- "5601:5601"