-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
95 lines (88 loc) · 2.26 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
version: "3.7"
networks:
sms-network:
services:
influxdb:
image: influxdb:2.0
container_name: influxdb
restart: unless-stopped
ports:
- 8086:8086
networks:
- sms-network
volumes:
- ~/docker_sms_volumes/influxdbv2:/root/.influxdbv2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=password
- DOCKER_INFLUXDB_INIT_ORG=solar-monitoring-stack
- DOCKER_INFLUXDB_INIT_BUCKET=data-realtime
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=temporary-admin-token
node-red:
#image: nodered/node-red:latest
build:
context: ./nodered
dockerfile: Dockerfile
container_name: nodered
restart: unless-stopped
depends_on:
- influxdb
ports:
- 8880:1880
networks:
- sms-network
volumes:
# - ~/docker_sms_volumes/nodered:/data
- ./nodered:/data
#environment:
# - FLOWS=my_flows.json
grafana:
image: grafana/grafana:latest
container_name: grafana
depends_on:
- mysql
restart: unless-stopped
ports:
- 3000:3000
networks:
- sms-network
volumes:
- ~/docker_sms_volumes/grafana:/var/lib/grafana
- ./grafana:/etc/grafana/provisioning
environment:
- GF_DATABASE_TYPE=mysql
- GF_DATABASE_HOST=mariadb:3306
- GF_DATABASE_NAME=grafana
- GF_DATABASE_USER=grafana
- GF_DATABASE_PASSWORD=password
- GF_SMTP_ENABLED=false
- GF_SMTP_HOST=smtp:25
- GF_INSTALL_PLUGINS=fetzerch-sunandmoon-datasource
- GF_PATH_PROVISIONING=/etc/grafana/provisioning
mysql:
image: mariadb
container_name: mariadb
networks:
- sms-network
volumes:
- ~/docker_sms_volumes/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=grafana
- MYSQL_USER=grafana
- MYSQL_PASSWORD=password
restart: unless-stopped
# smtp:
# image: panubo/postfix:latest
# container_name: smtp
# hostname: smtp
# networks:
# - sms-network
# ports:
# - 587:587
# environment:
# - MAILNAME=localhost
# - SMTPD_USERS=no-reply:password
# restart: unless-stopped