-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
145 lines (135 loc) · 3.91 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
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
version: '3.4'
services:
zipkin-server:
image: openzipkin/zipkin:2.23.2
ports:
- 9411:9411
restart: always
depends_on:
- rabbit-mq
environment:
RABBIT_URI: amqp://guest:guest@rabbit-mq:5672
networks:
- aldeir-network
rabbit-mq:
image: rabbitmq:3.8.14-management
ports:
- 5672:5672
- 15672:15672
restart: always
networks:
- aldeir-network
cambio-db:
image: mysql:5.7.22
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
TZ: America/Sao_Paulo
MYSQL_ROOT_PASSWORD: admin123
MYSQL_USER: docker
MYSQL_PASSWORD: admin123
MYSQL_DATABASE: cambio_service
MYSQL_ROOT_HOST: '%'
MYSQL_TCP_PORT: 3308
ports:
- 3308:3308
expose:
- 3308
networks:
- aldeir-network
book-db:
image: mysql:5.7.22
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
TZ: America/Sao_Paulo
MYSQL_ROOT_PASSWORD: admin123
MYSQL_USER: docker
MYSQL_PASSWORD: admin123
MYSQL_DATABASE: book_service
MYSQL_ROOT_HOST: '%'
MYSQL_TCP_PORT: 3310
ports:
- 3310:3310
expose:
- 3310
networks:
- aldeir-network
cambio-server:
image: aldeir5050/cambio-service
restart: always
build:
context: .
dockerfile: cambio-service/Dockerfile
environment:
TZ: America/Sao_Paulo
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
RABBIT_URI: amqp://guest:guest@rabbit-mq:5672
SPRING_RABBITMQ_HOST: rabbit-mq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
SPRING.DATASOURCE.URL: jdbc:mysql://cambio-db:3308/cambio_service?useSSL=false&serverTimezone=UTC&enabledTLSProtocols=TLSv1.2
SPRING.DATASOURCE.USERNAME: root
SPRING.DATASOURCE.PASSWORD: admin123
SPRING.FLYWAY.URL: jdbc:mysql://cambio-db:3308/cambio_service?useSSL=false&serverTimezone=UTC&enabledTLSProtocols=TLSv1.2
SPRING.FLYWAY.USER: root
SPRING.FLYWAY.PASSWORD: admin123
ports:
- 8000:8000
depends_on:
- naming-server
- cambio-db
- rabbit-mq
networks:
- aldeir-network
book-server:
image: aldeir5050/book-service
restart: always
build:
context: .
dockerfile: book-service/Dockerfile
environment:
TZ: America/Sao_Paulo
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
RABBIT_URI: amqp://guest:guest@rabbit-mq:5672
SPRING_RABBITMQ_HOST: rabbit-mq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
SPRING.DATASOURCE.URL: jdbc:mysql://book-db:3310/book_service?useSSL=false&serverTimezone=UTC&enabledTLSProtocols=TLSv1.2
SPRING.DATASOURCE.USERNAME: root
SPRING.DATASOURCE.PASSWORD: admin123
SPRING.FLYWAY.URL: jdbc:mysql://book-db:3310/book_service?useSSL=false&serverTimezone=UTC&enabledTLSProtocols=TLSv1.2
SPRING.FLYWAY.USER: root
SPRING.FLYWAY.PASSWORD: admin123
ports:
- 8100:8100
depends_on:
- naming-server
- book-db
- rabbit-mq
networks:
- aldeir-network
naming-server:
image: aldeir5050/naming-server:0.0.1-SNAPSHOT
ports:
- 8761:8761
networks:
- aldeir-network
api-gateway:
image: aldeir5050/api-gateway:0.0.1-SNAPSHOT
ports:
- 8765:8765
depends_on:
- naming-server
- rabbit-mq
environment:
EUREKA.CLIENT.SERVICEURL.DEFAULTZONE: http://naming-server:8761/eureka
SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/
RABBIT_URI: amqp://guest:guest@rabbit-mq:5672
SPRING_RABBITMQ_HOST: rabbit-mq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
networks:
- aldeir-network
networks:
aldeir-network:
driver: bridge