-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
72 lines (72 loc) · 1.74 KB
/
docker-compose.yaml
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
version: "3"
services:
# debug:
# container_name: handson-debug
# image: debian:buster
# command: ["tail", "-f", "/dev/null"]
db:
container_name: handson-db-service
build:
context: .
dockerfile: ./platform/db/Dockerfile
item:
container_name: handson-item-service
environment:
DB_HOST: handson-db-service
DB_PORT: 5000
LISTEN_PORT: 5001
build:
context: .
dockerfile: ./services/item/Dockerfile
ports:
- "5001:5001"
customer:
container_name: handson-customer-service
environment:
DB_HOST: handson-db-service
DB_PORT: 5000
LISTEN_PORT: 5002
build:
context: .
dockerfile: ./services/customer/Dockerfile
ports:
- "5002:5002"
authority:
container_name: handson-authority-service
environment:
CUSTOMER_HOST: handson-customer-service
CUSTOMER_PORT: 5002
LISTEN_PORT: 5003
build:
context: .
dockerfile: ./services/authority/Dockerfile
ports:
- "5003:5003"
catalog:
container_name: handson-catalog-service
environment:
CUSTOMER_HOST: handson-customer-service
CUSTOMER_PORT: 5002
ITEM_HOST: handson-item-service
ITEM_PORT: 5001
LISTEN_PORT: 5004
build:
context: .
dockerfile: ./services/catalog/Dockerfile
ports:
- "5004:5004"
gateway:
container_name: handson-gateway-service
environment:
AUTHORITY_HOST: handson-authority-service
AUTHORITY_PORT: 5003
CATALOG_HOST: handson-catalog-service
CATALOG_PORT: 5004
GATEWAYGRPC_PORT: 5005
GATEWAYHTTP_PORT: 4000
build:
context: .
dockerfile: ./services/gateway/Dockerfile
ports:
- "5005:5005"
- "4000:4000"