-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
126 lines (126 loc) · 3.57 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
version: "3"
networks:
default:
ipam:
config:
- subnet: 172.22.0.0/24
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'America/New_York'
WEBPASSWORD: 'set a secure password here or it will be this string'
DNS1: 208.67.222.222
DNS2: 208.67.220.220
volumes:
# Volumes store your data between container upgrades
- ./etc/pihole/:/etc/pihole/
- ./etc/dnsmasq.d/:/etc/dnsmasq.d/
# run `mkdir ./var-log/pihole` first unless you like errors
- ./var-log/pihole/:/var/log/pihole/
- ./ssl-certs:/etc/ssl/mycerts
- ./etc/lighttpd/external.conf:/etc/lighttpd/external.conf
restart: unless-stopped
networks:
default:
ipv4_address: 172.22.0.2
dns:
- 127.0.0.1
security_opt:
- seccomp=unconfined
influxdb:
container_name: influxdb
image: "arm32v7/influxdb:latest"
command: bash -c "/init-influxdb.sh; influxd 2>&1 | tee -a /var/log/influxdb/influxdb.log"
ports:
- "8086:8086"
environment:
INFLUXDB_HTTP_AUTH_ENABLED: 'true'
INFLUXDB_ADMIN_USER: 'admin'
INFLUXDB_ADMIN_PASSWORD: 'setasecurepasswordhereoritwillbethisstring'
INFLUXDB_DB: 'telegraf'
INFLUXDB_WRITE_USER: 'telegraf'
INFLUXDB_WRITE_USER_PASSWORD: 'setasecurepasswordhereoritwillbethisstring'
INFLUXDB_READ_USER: 'grafana'
INFLUXDB_READ_USER_PASSWORD: 'setasecurepasswordhereoritwillbethisstring'
volumes:
- ./etc/ssl/mycerts:/etc/ssl/mycerts
- ./var-lib/influxdb:/var/lib/influxdb
- ./var-log/influxdb:/var/log/influxdb
- ./etc/influxdb:/etc/influxdb:ro
restart: unless-stopped
networks:
default:
ipv4_address: 172.22.0.3
telegraf:
container_name: telegraf
image: "arm32v7/telegraf:latest"
command: bash -c "ldconfig && telegraf"
depends_on:
- influxdb
devices:
- /dev/vchiq:/dev/vchiq
ports:
- 998:998
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var:/host/var:ro
- /run:/host/run:ro
- ./etc/telegraf:/etc/telegraf:ro
- ./var-log/telegraf:/var/log/telegraf
- /dev/vchiq:/dev/vchiq
- /etc/ld.so.conf.d/00-vmcs.conf:/etc/ld.so.conf.d/00-vmcs.conf
- /opt/vc:/opt/vc
environment:
INFLUXDB_WRITE_USER_PASSWORD: 'setasecurepasswordhereoritwillbethisstring'
HOST_PROC: /host/proc
HOST_SYS: /host/sys
HOST_VAR: /host/var
HOST_RUN: /host/run
restart: unless-stopped
networks:
default:
ipv4_address: 172.22.0.4
grafana:
container_name: grafana
image: "grafana/grafana:latest"
depends_on:
- influxdb
ports:
- "3000:3000"
volumes:
- ./etc/ssl/mycerts:/etc/ssl/mycerts
- ./var-lib/grafana:/var/lib/grafana
- ./var-log/grafana:/var/log/grafana
- ./etc/grafana/grafana.ini:/etc/grafana/grafana.ini
restart: unless-stopped
networks:
default:
ipv4_address: 172.22.0.5
# motion:
# container_name: motion
# build: ./motion-docker
# depends_on:
# - pihole
# devices:
# - /dev/video0:/dev/video0
# ports:
# - "8080:8080"
# - "8081:8081"
# volumes:
# - ./var-log/motion:/var/log/motion
# - ./var-lib/motion:/var/lib/motion
# - ./etc/motion/motion.conf:/usr/local/etc/motion/motion.conf
# environment:
# TZ: 'America/New_York'
# restart: unless-stopped
# networkds:
# default:
# ipv4_address: 172.23.0.6