-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (90 loc) · 2.69 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
version: '3'
services:
mysql:
image: mysql:latest
ports:
- "3306:3306"
command: --init-file /data/application/init.sql
volumes:
- ./init.sql:/data/application/init.sql
environment:
MYSQL_ROOT_PASSWORD: root
networks:
- microservico-network
microservico-auth:
build:
dockerfile: ./Dockerfile
context: ./auth
image: victorhugolgr/microservico-auth
container_name: microservico-auth
ports:
- "8088:8088"
networks:
- microservico-network
microservico-config-server:
build:
dockerfile: ./Dockerfile
context: ./config-server
image: victorhugolgr/microservico-config-server
container_name: microservico-config-server
ports:
- "8888:8888"
networks:
- microservico-network
microservico-eureka-server:
build:
dockerfile: ./Dockerfile
context: ./eureka-server
image: victorhugolgr/microservico-eureka-server
container_name: microservico-eureka-server
ports:
- "8761:8761"
networks:
- microservico-network
microservico-fornecedor:
build:
dockerfile: ./Dockerfile
context: ./fornecedor
image: victorhugolgr/microservico-fornecedor
container_name: microservico-fornecedor
ports:
- "8081:8081"
networks:
- microservico-network
links:
- microservico-config-server:microservico-config-server
- microservico-eureka-server:microservico-eureka-server
- mysql:mysql
depends_on:
- "microservico-config-server"
- "microservico-eureka-server"
- "mysql"
microservico-loja:
build:
dockerfile: ./Dockerfile
context: ./loja
image: victorhugolgr/microservico-loja
container_name: microservico-loja
ports:
- "8080:8080"
networks:
- microservico-network
depends_on:
- "microservico-config-server"
- "mysql"
microservico-transportador:
build:
dockerfile: ./Dockerfile
context: ./transportador
image: victorhugolgr/microservico-transportador
container_name: microservico-transportador
ports:
- "8083:8083"
networks:
- microservico-network
depends_on:
- "microservico-config-server"
- "mysql"
networks:
microservico-network :
driver: bridge