forked from eszych/fhem-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
157 lines (146 loc) · 3.14 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: '2'
services:
nginx:
restart: always
expose:
- "80"
- "443"
- "3000"
ports:
- 80:80
- 443:443
- 3000:3000
build: nginx
container_name: nginx
environment:
- MY_DOMAIN_NAME=fhem.donvitum.de
volumes:
- certs:/etc/letsencrypt/
- nginx:/etc/nginx/
networks:
- frontend
- backend
fhem:
restart: always
expose:
- "7072"
- "8083"
- "8383"
build: fhem
container_name: fhem
privileged: true
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
- "/dev/ttyACM0:/dev/ttyACM0"
volumes:
- fhem:/opt/fhem
networks:
- backend
- database
depends_on:
- "mysql"
- "nginx"
mysql:
restart: always
expose:
- "3306"
- "33060"
image: mysql/mysql-server:5.7
container_name: mysql
volumes:
- ./mysql/init.sql:/docker-entrypoint-initdb.d/fhem-init.sql
- mysql:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
networks:
- database
homebridge:
restart: always
expose:
- "51826"
- "8282"
- "5353"
ports:
- "51826:51826"
- "8282:8282"
- "5353:5353"
build: homebridge
container_name: homebridge
volumes:
- homebridge:/root
network_mode: host
depends_on:
- "fhem"
habridge:
restart: always
expose:
- "8888"
ports:
- "8888:8888"
build: habridge
container_name: habridge
volumes:
- habridge:/config
network_mode: host
depends_on:
- "fhem"
alexa:
restart: always
expose:
- "3000"
build: alexa
container_name: alexa
volumes:
- certs:/etc/letsencrypt/
networks:
- backend
depends_on:
- "fhem"
- "nginx"
mqtt:
restart: always
expose:
- "1883"
- "9001"
ports:
- "1883:1883"
- "9001:9001"
image: toke/mosquitto
container_name: mqtt
networks:
- frontend
- backend
volumes:
- mqtt:/mqtt
nodered:
restart: always
expose:
- "1880"
image: nodered/node-red-docker:0.17.5
build: nodered
container_name: nodered
volumes:
- nodered:/data/
networks:
# - frontend
- backend
depends_on:
- "mqtt"
networks:
frontend:
driver: bridge
backend:
driver: bridge
database:
driver: bridge
volumes:
certs:
nginx:
portainer:
fhem:
mysql:
homebridge:
habridge:
smartvisu:
nodered:
mqtt: