-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.31 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
61
version: "3.7"
services:
calculator:
container_name: calculator
labels:
app: kubernetes-calculator
build:
context: services/calculator
dockerfile: Dockerfile
image: "pexers/calculator:${TAG}"
ports:
- 80:80
links: # Avoids to write hardcoded HTTP ports in calculator service
- addition
- division
- multiplication
- subtraction
addition:
container_name: addition
labels:
app: kubernetes-calculator
build:
context: services/addition
dockerfile: Dockerfile
image: "pexers/addition:${TAG}"
ports:
- 3000:80
division:
container_name: division
labels:
app: kubernetes-calculator
build:
context: services/division
dockerfile: Dockerfile
image: "pexers/division:${TAG}"
ports:
- 3001:80
multiplication:
container_name: multiplication
labels:
app: kubernetes-calculator
build:
context: services/multiplication
dockerfile: Dockerfile
image: "pexers/multiplication:${TAG}"
ports:
- 3002:80
subtraction:
container_name: subtraction
labels:
app: kubernetes-calculator
build:
context: services/subtraction
dockerfile: Dockerfile
image: "pexers/subtraction:${TAG}"
ports:
- 3003:80