-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (78 loc) · 1.82 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
version: '2.4'
services:
db-cursos:
image: postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=cg_cursos
restart: always
networks:
- dbpautas-network
db-usuarios:
image: postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=cg_usuarios
restart: always
networks:
- dbpautas-network
rabbitmq:
image: rabbitmq:3-management
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
networks:
- dbpautas-network
eureka-server:
build:
dockerfile: ./Dockerfile
context: ./eureka-server
image: victorhfsilva/gerenciamento-cursos-eureka-server
env_file:
- ./eureka-server/.env
networks:
- dbpautas-network
usuarios-ms:
build:
dockerfile: ./Dockerfile
context: ./usuarios-ms
image: victorhfsilva/gerenciamento-cursos-usuarios-ms
env_file:
- ./usuarios-ms/.env
depends_on:
- db-usuarios
- eureka-server
- rabbitmq
networks:
- dbpautas-network
cursos-ms:
build:
dockerfile: ./Dockerfile
context: ./cursos-ms
image: victorhfsilva/gerenciamento-cursos-cursos-ms
env_file:
- ./cursos-ms/.env
depends_on:
- db-cursos
- eureka-server
- rabbitmq
networks:
- dbpautas-network
api-gateway:
build:
dockerfile: ./Dockerfile
context: ./api-gateway
image: victorhfsilva/gerenciamento-cursos-api-gateway
env_file:
- ./api-gateway/.env
depends_on:
- eureka-server
ports:
- "8080:8080"
networks:
- dbpautas-network
networks:
dbpautas-network:
driver: bridge