-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
171 lines (155 loc) · 3.66 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: '3.3'
networks:
backend:
services:
nsqlookupd:
image: nsqio/nsq:latest
entrypoint: nsqlookupd
ports:
- "4160:4160"
- "4161:4161"
networks:
backend:
nsqd:
image: nsqio/nsq:latest
entrypoint: ["nsqd", "--lookupd-tcp-address=nsqlookupd:4160"]
ports:
- "4150:4150"
- "4151:4151"
networks:
backend:
nsqadmin:
image: nsqio/nsq:latest
entrypoint: ["nsqadmin", "--lookupd-http-address=nsqlookupd:4161"]
networks:
backend:
ports:
- "4171:4171"
nsqcli:
image: nsqio/nsq:latest
command: ["nsq_tail","-lookupd-http-address","nsqlookupd:4161","-topic","sensors"]
networks:
backend:
restart: on-failure
memcached:
image: memcached:latest
command: memcached -vv
networks:
backend:
influxdb:
image: influxdb:latest
networks:
backend:
chronograf:
image: chronograf:latest
command: chronograf --influxdb-url=http://influxdb:8086
networks:
backend:
ports:
- "8888:8888"
grafana:
image: grafana/grafana:latest
networks:
backend:
ports:
- "3000:3000"
prometheus:
image: prom/prometheus
volumes:
- ./config/prometheus/:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
backend:
ports:
- "9090:9090"
#################################################
local_manager:
build:
context: ./
dockerfile: Dockerfile.amd64
image: r3r57/montreal:develop-amd64
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/montreal.json:/app/montreal.json
- ./config/local_configuration.json:/etc/montreal/local_configuration.json
networks:
backend:
tty: true
environment:
CONFIG: ./montreal.json
SERVICE: "local_manager"
#################################################
json_memcache_writer:
build:
context: ./
dockerfile: Dockerfile.amd64
image: r3r57/montreal:develop-amd64
volumes:
- ./config/montreal.json:/app/montreal.json
networks:
backend:
tty: true
environment:
CONFIG: ./montreal.json
SERVICE: "sensor_data_memcache_writer"
#################################################
influxdb_writer:
build:
context: ./
dockerfile: Dockerfile.amd64
image: r3r57/montreal:develop-amd64
volumes:
- ./config/montreal.json:/app/montreal.json
networks:
backend:
tty: true
environment:
CONFIG: ./montreal.json
SERVICE: "influxdb_writer"
#################################################
prometheus_writer:
build:
context: ./
dockerfile: Dockerfile.amd64
image: r3r57/montreal:develop-amd64
volumes:
- ./config/montreal.json:/app/montreal.json
networks:
backend:
tty: true
environment:
CONFIG: ./montreal.json
SERVICE: "prometheus_writer"
ports:
- "8000:8000"
#################################################
web:
build:
context: ./
dockerfile: Dockerfile.amd64
image: r3r57/montreal:develop-amd64
volumes:
- ./config/montreal.json:/app/montreal.json
networks:
backend:
ports:
- "5000:5000"
tty: true
environment:
CONFIG: ./montreal.json
SERVICE: "web"
#################################################
sensor_list:
build:
context: ./
dockerfile: Dockerfile.amd64
image: r3r57/montreal:develop-amd64
volumes:
- ./config/montreal.json:/app/montreal.json
networks:
backend:
tty: true
environment:
CONFIG: ./montreal.json
SERVICE: "sensor_list_memcache_writer"