-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
88 lines (88 loc) · 1.89 KB
/
docker-compose.yaml
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
version: "3"
services:
mariadb:
image: mariadb:latest
container_name: mariadb
environment:
MYSQL_ROOT_PASSWORD: Root-Passwort
MYSQL_DATABASE: DB-Name
MYSQL_USER: User
MYSQL_PASSWORD: User-Passwort
restart: unless-stopped
tty: true
ports:
- "3306:3306"
volumes:
- mariadb-data:/var/lib/mysql
networks:
- edge
nodered:
image: nodered/node-red:latest
container_name: nodered
restart: unless-stopped
ports:
- "1880:1880"
volumes:
- nodered-data:/data
networks:
- edge
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
networks:
- edge
influxdb:
image: influxdb:1.8
container_name: influxdb
restart: unless-stopped
environment:
INFLUXDB_DB: smartmeter
INFLUXDB_HTTP_AUTH_ENABLED: "true"
INFLUXDB_ADMIN_USER: Admin
INFLUXDB_ADMIN_PASSWORD: Admin-Passwort
INFLUXDB_USER: User
INFLUXDB_USER_PASSWORD: User-Passwort
ports:
- "8082:8082"
- "8086:8086"
- "8089:8089"
volumes:
- influx-data:/var/lib/influxdb
networks:
- edge
mosquitto:
image: eclipse-mosquitto:1.6.14
container_name: mosquitto
restart: unless-stopped
ports:
- "1883:1883"
- "9005:9005"
volumes:
- mosquitto-log:/mosquitto/log
- mosquitto-data:/mosquitto/data
networks:
- edge
python:
build: ./python
container_name: python
# mount USB
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
restart: unless-stopped
networks:
- edge
#Create internal link network for Containers
networks:
edge: #Create Volumes for persistent Storage
volumes:
grafana-data:
nodered-data:
influx-data:
mosquitto-log:
mosquitto-data:
mariadb-data: