forked from microservice-2020-3/observable-api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (94 loc) · 2.36 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '2'
services:
mongo:
image: 'mongo'
environment:
- MONGO_INITDB_DATABASE=admin
- MONGO_INITDB_USERNAME=admin
- MONGO_INITDB_PASSWORD=admin
volumes:
- ./cinema-microservice/mongo-db/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
ports:
- '27017-27019:27017-27019'
networks:
- envoymesh
booking-service:
build: ./cinema-microservice/booking-service
env_file: ./cinema-microservice/booking-service/env
labels:
apiRoute: '/booking'
networks:
- envoymesh
cinema-catalog-service:
build: ./cinema-microservice/cinema-catalog-service
env_file: ./cinema-microservice/cinema-catalog-service/env
labels:
apiRoute: '/cinemas'
networks:
- envoymesh
movies-service:
build: ./cinema-microservice/movies-service
labels:
apiRoute: '/movies'
networks:
- envoymesh
payment-service:
build: ./cinema-microservice/payment-service
env_file: ./cinema-microservice/payment-service/env
labels:
apiRoute: '/payment'
networks:
- envoymesh
notification-service:
build: ./cinema-microservice/notification-service
env_file: ./cinema-microservice/notification-service/env
labels:
apiRoute: '/notification'
networks:
- envoymesh
proxy:
image: bitnami/envoy
volumes:
- ./envoy/envoy.yaml:/opt/bitnami/envoy/conf/envoy.yaml
ports:
- "8081:8081"
- "8001:8001"
networks:
- envoymesh
prometheus:
image: prom/prometheus:v2.1.0
volumes:
- ./prometheus/:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
networks:
- envoymesh
restart: always
grafana:
image: grafana/grafana
depends_on:
- prometheus
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/dashboards/:/var/lib/grafana/dashboards
ports:
- 3000:3000
networks:
- envoymesh
restart: always
jaeger:
image: jaegertracing/all-in-one
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
networks:
- envoymesh
ports:
- "9411:9411"
- "16686:16686"
- "5775:5775/udp"
networks:
envoymesh: {}
volumes:
mongodata: