-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.14 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
version: "3.8"
services:
auth-grpc:
build:
context: ./auth-grpc-microservice
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- SERVER_PORT=8000
- DATABASE_SECRET=replace_with_actual_secret
networks:
- microservices-network
order-redis:
build:
context: ./order-redis-microservice
dockerfile: Dockerfile
ports:
- "8081:8081"
environment:
- SERVER_PORT=8081
- REDIS_ADDRESS=redis:6379
depends_on:
- redis
networks:
- microservices-network
product-service:
build:
context: ./product-service
dockerfile: Dockerfile
ports:
- "8082:8082"
environment:
- SERVER_PORT=8082
- AUTH_GRPC_ADDRESS=auth-grpc:8000
- ORDER_SERVICE_ADDRESS=http://order-redis:8081
depends_on:
- auth-grpc
- order-redis
networks:
- microservices-network
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- microservices-network
networks:
microservices-network:
name: microservices-network
volumes:
redis-data: