-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
74 lines (71 loc) · 1.46 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
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.7'
services:
front-envoy:
build:
context: ../apps
dockerfile: Dockerfile-frontenvoy
volumes:
- ./front-envoy.yaml:/etc/front-envoy.yaml
networks:
- envoymesh
expose:
# Expose ports 80 (for general traffic) and 8001 (for the admin server)
- "8000"
- "8001"
ports:
- "8000:8000"
- "8001:8001"
service_blue:
build:
context: ../apps
dockerfile: Dockerfile-service
volumes:
- ./service-blue-envoy-zipkin.yaml:/etc/service-envoy.yaml
networks:
envoymesh:
aliases:
- service_blue
environment:
- SERVICE_NAME=blue
expose:
- "80"
service_green:
build:
context: ../apps
dockerfile: Dockerfile-service
volumes:
- ./service-green-envoy-zipkin.yaml:/etc/service-envoy.yaml
networks:
envoymesh:
aliases:
- service_green
environment:
- SERVICE_NAME=green
expose:
- "80"
service_red:
build:
context: ../apps
dockerfile: Dockerfile-service
volumes:
- ./service-red-envoy-zipkin.yaml:/etc/service-envoy.yaml
networks:
envoymesh:
aliases:
- service_red
environment:
- SERVICE_NAME=red
expose:
- "80"
zipkin:
image: openzipkin/zipkin
networks:
envoymesh:
aliases:
- zipkin
expose:
- "9411"
ports:
- "9411:9411"
networks:
envoymesh: {}