-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 loc) · 1.6 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
services:
rabbitmq:
image: rabbitmq:3.12-management
restart: always
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
container_name: rabbitmq
service-registry:
build:
dockerfile: ./Dockerfile
context: ./service-registry
ports:
- 8081:8081
container_name: service-registry
estoque-ms:
build:
dockerfile: ./Dockerfile
context: ./estoque-ms
environment:
- SERVICE_REGISTRY_URL=http://service-registry:8081/eureka
- RABBIT_HOST=rabbitmq
- RABBIT_USERNAME=admin
- RABBIT_PASSWORD=admin
container_name: estoque-ms
depends_on:
- rabbitmq
- service-registry
gateway:
build:
dockerfile: ./Dockerfile
context: ./gateway
ports:
- 8082:8082
environment:
- SERVICE_REGISTRY_URL=http://service-registry:8081/eureka
container_name: gateway
depends_on:
- service-registry
pedido-api:
build:
dockerfile: ./Dockerfile
context: ./pedido-api
environment:
- SERVICE_REGISTRY_URL=http://service-registry:8081/eureka
- RABBIT_HOST=rabbitmq
- RABBIT_USERNAME=admin
- RABBIT_PASSWORD=admin
container_name: pedido-api
depends_on:
- rabbitmq
- service-registry
- estoque-ms