-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathdocker-compose.yml
79 lines (74 loc) · 1.83 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
version: '2'
services:
fhem:
restart: always
ports:
- "8083:8083"
- "7072:7072"
image: fhem/fhem:latest
volumes:
- ./fhem/core/:/opt/fhem/
networks:
- fhem-network
environment:
FHEM_UID: 1000
FHEM_GID: 1000
TIMEOUT: 10
RESTART: 1
TELNETPORT: 7072
TZ: Europe/Berlin
depends_on:
- "mysql"
- "mqtt"
mysql:
restart: always
expose:
- "3306"
- "33060"
ports:
- "3306:3306"
- "33060:33060"
image: mysql/mysql-server:5.7
volumes:
- ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
- ./mysql/data:/var/lib/mysql
environment:
- MYSQL_DATABASE=fhem
- MYSQL_USER=fhemuser
- MYSQL_PASSWORD=2jRHnEi3WuNSQAcX7
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_ONETIME_PASSWORD=false
networks:
- fhem-network
mqtt:
restart: always
expose:
- "1883"
- "9001"
ports:
- "1883:1883"
- "9001:9001"
image: eclipse-mosquitto:2.0.15
networks:
- fhem-network
volumes:
- ./mqtt/config/:/mosquitto/config/
- ./mqtt/log/:/mosquitto/log/
- ./mqtt/data/:/mosquitto/data/
nodered:
restart: always
expose:
- "1880"
ports:
- "1880:1880"
image: nodered/node-red:1.0.3-2
user: "1000:1000"
volumes:
- ./nodered/data/:/data/
networks:
- fhem-network
depends_on:
- "mqtt"
networks:
fhem-network:
driver: bridge