-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
196 lines (193 loc) · 4.37 KB
/
docker-compose-dev.yml
File metadata and controls
196 lines (193 loc) · 4.37 KB
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"
services:
front:
image: "front:latest"
container_name: "bantads-front"
build:
context: ./front
dockerfile: Dockerfile
ports:
- "4200:4200"
volumes:
- ./front:/app:rw
auth:
networks:
- auth
image: "auth:latest"
build:
context: ./back/auth
volumes:
- ./back/auth/:/app
depends_on:
- auth-db
- broker
container_name: bantads-auth
ports:
- "5000:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://auth-db:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
auth-db:
networks:
- auth
image: "postgres:13.1-alpine"
container_name: bantads-auth-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
cliente:
networks:
- cliente
- account
image: "cliente:latest"
build:
context: ./back/cliente
volumes:
- ./back/cliente/:/app
depends_on:
- cliente-db
container_name: bantads-cliente
ports:
- "5001:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://cliente-db:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
cliente-db:
networks:
- cliente
image: "postgres:13.1-alpine"
container_name: bantads-cliente-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
gerente:
networks:
- gerente
image: "gerente:latest"
build:
context: ./back/gerente
volumes:
- ./back/gerente/:/app
depends_on:
- gerente-db
container_name: bantads-gerente
ports:
- "5002:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://gerente-db:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
gerente-db:
networks:
- gerente
image: "postgres:13.1-alpine"
container_name: bantads-gerente-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
broker:
networks:
- auth
- cliente
- account
- gerente
container_name: bantads-broker
image: rabbitmq:3.10-management
ports:
- "5672:5672"
- "15672:15672"
- "15692:15692"
account:
image: "account:latest"
container_name: bantads-account
networks:
- account
- cliente
build:
context: ./back/account
depends_on:
- account-db
volumes:
- ./back/account/:/app
ports:
- "5003:5000"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://account-db:5432/postgres
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
account-db:
networks:
- account
container_name: bantads-account-db
image: "postgres:13.1-alpine"
volumes:
- ./bds/account/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- "5433:5432"
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: "False"
ports:
- "${PGADMIN_PORT:-5050}:80"
networks:
- auth
- cliente
- gerente
- account
restart: unless-stopped
saga:
networks:
- auth
- cliente
- account
- gerente
- saga
image: "saga:latest"
build:
context: ./back/saga
container_name: bantads-saga
ports:
- "3030:3030"
volumes:
- ./back/saga:/app
gateway:
networks:
- auth
- cliente
- account
- gerente
image: "gateway:latest"
build:
context: ./back/gateway
dockerfile: Dockerfile
volumes:
- ./back/gateway/:/app
- /app/node_modules
container_name: bantads-gateway
ports:
- "3000:3000"
networks:
auth:
driver: bridge
cliente:
driver: bridge
gerente:
driver: bridge
account:
name: account
driver: bridge
saga:
driver: bridge