-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 989 Bytes
/
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
version: '3.8'
services:
auth-service:
build:
context: ./auth-service
ports:
- 3001:3000
environment:
- DB_URI=${DB_URI_AUTH}
- JWT_SECRET=${JWT_SECRET}
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
order-service:
build:
context: ./order-service
ports:
- 3002:3000
environment:
- DB_URI=${DB_URI_ORDER}
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
product-service:
build:
context: ./product-service
ports:
- 3003:3000
environment:
- DB_URI=${DB_URI_SERVICE}
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
gateway:
build:
context: ./gateway
ports:
- 3000:3000
depends_on:
- auth-service
- order-service
- product-service
redis:
image: redis:latest
ports:
- 6379:6379
command: redis-server --save 60 1 --loglevel warning