-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (103 loc) · 2.17 KB
/
docker-compose.yml
File metadata and controls
111 lines (103 loc) · 2.17 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3'
services:
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
hostname: rabbitmq
environment:
- RABBITMQ_NODENAME=rabbitmq@rabbitmq
ports:
- "15672:15672"
- "5672:5672"
- "15692:15692"
- "5552:5552"
- "5671:5671"
networks:
network:
ipv4_address: 10.5.0.5
restart: always
prometheus:
image: prom/prometheus
container_name: prometheus
networks:
- network
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus:/prometheus
ports:
- 9090:9090
grafana:
image: grafana/grafana
ports:
- 3000:3000
networks:
- network
restart: always
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./grafana/provisioning/dashboards:/var/lib/grafana/dashboards
- ./grafana-data:/var/lib/grafana
consumer:
build: ./subscriber
image: subscriber
ports:
- "8080:80"
links:
- rabbitmq
networks:
- network
depends_on:
rabbitmq:
condition: service_started
restart: always
publisher:
build: ./publisher
image: publisher
links:
- rabbitmq
ports:
- "1234:1234"
networks:
- network
depends_on:
rabbitmq:
condition: service_started
restart: always
streampublisher:
build: ./streampublisher
image: streampublisher
links:
- rabbitmq
ports:
- "1235:1235"
environment:
- hostip=10.5.0.5
networks:
- network
depends_on:
rabbitmq:
condition: service_started
restart: always
streamsubscriber:
build: ./streamsubscriber
image: streamsubscriber
links:
- rabbitmq
environment:
- hostip=10.5.0.5
ports:
- "1111:1111"
networks:
- network
depends_on:
rabbitmq:
condition: service_started
restart: always
networks:
network:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1