-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
74 lines (66 loc) · 1.29 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"
networks:
myevents:
monitoring:
volumes:
prometheus-data:
grafana-data:
services:
rabbitmq:
image: rabbitmq:3-management
ports:
- 15672:15672
networks:
- myevents
events-db:
image: mongo
networks:
- myevents
bookings-db:
image: mongo
networks:
- myevents
events:
build: ./src/eventservice
ports:
- 8181:8181
- 9100:9100
depends_on:
- rabbitmq
- events-db
environment:
- AMQP_BROKER_URL=amqp://guest:guest@rabbitmq:5672/
- MONGO_URL=mongodb://events-db/events
networks:
- myevents
bookings:
build: ./src/bookingservice
ports:
- 8282:8181
- 9101:9100
depends_on:
- rabbitmq
- bookings-db
environment:
- AMQP_BROKER_URL=amqp://guest:guest@rabbitmq:5672/
- MONGO_URL=mongodb://bookings-db/bookings
networks:
- myevents
prometheus:
image: prom/prometheus:v1.6.1
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
ports:
- 9090:9090
networks:
- myevents
- monitoring
grafana:
image: grafana/grafana:4.2.0
ports:
- 3000:3000
volumes:
- grafana-data:/var/lib/grafana
networks:
- monitoring