forked from klein0r/fhem-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
215 lines (202 loc) · 4.84 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
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=landblog.serveblog.net
volumes:
- certs:/etc/letsencrypt/
- nginx:/etc/nginx/
networks:
- frontend
- backend
# depends_on:
# - "letsencrypt"
############################
### disabled for testing ###
# letsencrypt:
# restart: always
# expose:
# - "80"
# - "443"
# ports:
# - 80:80
# - 443:443
# container_name: letsencrypt
# image: quay.io/letsencrypt/letsencrypt:latest
# command: bash -c "sleep 6 && certbot certonly --standalone -d landblog.serveblog.net --text --agree-tos --email [email protected] --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --renew-by-default --standalone-supported-challenges http-01"
# entrypoint: ""
# environment:
# - TERM=xterm
# volumes:
# - certs:/etc/letsencrypt/
# - letsencrypt:/var/lib/letsencrypt
# networks:
# - backend
############################
# Moved to its own docker-compose file
# docker-portainer.yml
# portainer:
# expose:
# - "9000"
# ports:
# - "9000:9000"
# image: portainer/portainer
# container_name: portainer
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# - portainer:/data portainer/portainer
# networks:
# - backend
# depends_on:
# - "nginx"
############################
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"
############################
### Temporary removed ###
# smartvisu:
# restart: always
# expose:
# - "80"
# build: smartvisu
# container_name: smartvisu
# volumes:
# - smartvisu:/usr/share/nginx
# networks:
# - backend
# depends_on:
# - "fhem"
############################
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: