-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
79 lines (73 loc) · 1.47 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
73
74
75
76
77
78
79
version: "3.7"
services:
front-envoy:
build:
context: .
dockerfile: Dockerfile-frontenvoy
volumes:
- ./front-envoy.yaml:/etc/front-envoy.yaml
networks:
- envoymesh
expose:
- "80"
- "8001"
ports:
- "8000:80"
- "8001:8001"
service-envoy:
build:
context: .
dockerfile: Dockerfile-service
command: ["envoy", "-c", "/etc/service-envoy.yaml", "--service-cluster", "service"]
volumes:
- ./service-envoy.yaml:/etc/service-envoy.yaml
networks:
envoymesh:
aliases:
- service-envoy
expose:
- "80"
ports:
- "9000:80"
- "9001:8001"
service-1:
build:
context: .
dockerfile: Dockerfile-service
command: ["python3", "/code/server.py"]
volumes:
- ./server.py:/code/server.py
networks:
envoymesh:
aliases:
- service1
expose:
- "8080"
service-2:
build:
context: .
dockerfile: Dockerfile-service
command: ["python3", "/code/server.py"]
volumes:
- ./server.py:/code/server.py
networks:
envoymesh:
aliases:
- service2
expose:
- "8080"
service-3:
build:
context: .
dockerfile: Dockerfile-service
command: ["python3", "/code/server.py"]
volumes:
- ./server.py:/code/server.py
networks:
envoymesh:
aliases:
- service2
expose:
- "8080"
networks:
envoymesh: {}