-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 986 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 986 Bytes
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
version: '3.8'
services:
user-service:
build:
context: .
dockerfile: services/user-service/Dockerfile
ports:
- "50051:50051"
environment:
- SERVICE_PORT=50051
- SERVICE_NAME=user-service
networks:
- microservices-net
order-service:
build:
context: .
dockerfile: services/order-service/Dockerfile
ports:
- "50052:50052"
environment:
- SERVICE_PORT=50052
- SERVICE_NAME=order-service
- USER_SERVICE_ADDR=user-service:50051
- PAYMENT_SERVICE_ADDR=payment-service:50053
depends_on:
- user-service
- payment-service
networks:
- microservices-net
payment-service:
build:
context: .
dockerfile: services/payment-service/Dockerfile
ports:
- "50053:50053"
environment:
- SERVICE_PORT=50053
- SERVICE_NAME=payment-service
networks:
- microservices-net
networks:
microservices-net:
driver: bridge