-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (76 loc) · 2.11 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
version: "3"
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- 3000:3000
networks:
- monitoring_network
volumes:
- grafana-volume:/var/lib/grafana
- ./provisioning:/etc/grafana/provisioning
environment:
- GF_DATE_FORMATS_INTERVAL_SECOND=h:mm:ss a
- GF_DATE_FORMATS_INTERVAL_MINUTE=h:mm a
- GF_DATE_FORMATS_INTERVAL_HOUR=MMM DD h:mm a
- GF_DATE_FORMATS_FULL_DATE=MMM Do, YYYY @ h:mm:ss a
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_INSTALL_PLUGINS=natel-discrete-panel
influxdb:
image: influxdb:1.8
container_name: influxdb
restart: always
ports:
- 8086:8086
networks:
- monitoring_network
volumes:
- influxdb-volume:/var/lib/influxdb
environment:
- INFLUXDB_DB=weather #Don't change
- INFLUXDB_USER=weather #Don't change
- INFLUXDB_USER_PASSWORD=Welcome1 #Don't change
labels:
- docker-volume-backup.stop-during-backup=true
grabber:
build:
context: ./grabber
dockerfile: Dockerfile
container_name: grabber
restart: always
depends_on:
- "influxdb"
networks:
- monitoring_network
environment:
- EMAIL=${EMAIL} #lacrosse email
- PASSWORD=${PASSWORD} #lacrosse password
- SENSORMAIN=${SENSORMAIN} #lacrosse main sensor (inside unit)
- SENSOROUTSIDE=${SENSOROUTSIDE} #lacrosse outsidesensor
- TIMEZONE=${TIMEZONE} #Timezone to grabdata for
- TZ=${TIMEZONE}
labels:
- docker-volume-backup.stop-during-backup=true
backup:
image: offen/docker-volume-backup:v2
container_name: backup
restart: always
depends_on:
- "influxdb"
networks:
- monitoring_network
environment:
BACKUP_FILENAME: backup-%Y-%m-%dT%H-%M-%S.tar.gz
BACKUP_LATEST_SYMLINK: backup-latest.tar.gz
BACKUP_RETENTION_DAYS: 14
volumes:
- influxdb-volume:/backup/influxdb-backup:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /mnt/data/backups:/archive
networks:
monitoring_network:
volumes:
grafana-volume:
influxdb-volume: