-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.16 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
version: "3"
services:
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto
ports:
- 1883:1883
- 9001:9001
volumes:
- "./mosquitto/config/:/mosquitto/config/:ro"
telegraf:
image: telegraf
container_name: telegraf
volumes:
- "./telegraf/config/telegraf.conf:/etc/telegraf/telegraf.conf"
depends_on:
- influxdb
- mosquitto
influxdb:
image: influxdb:1.8
container_name: influxd
# ports:
# - 8086:8086
volumes:
- "./influxdb/db:/var/lib/influxdb"
restart: on-failure
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
env_file:
- 'grafana/env.grafana'
user: "0"
links:
- influxdb
volumes:
# Data persistency
# sudo mkdir -p /srv/docker/grafana/data; chown 472:472 /srv/docker/grafana/data
- ./grafana/data:/var/lib/grafana
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
# user: '104'
nginx:
image: nginx
container_name: nginx
ports:
- 80:80
links:
- grafana
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf