-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
238 lines (222 loc) · 6.16 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
version: '3'
services:
broker:
container_name: fhem_mqtt
restart: unless-stopped
image: eclipse-mosquitto:latest
volumes:
- "./mosquitto:/mosquitto"
- "/etc/localtime:/etc/localtime:ro"
networks:
- fhem-network
ports:
- "1883:1883"
environment:
- TZ=Europe/Berlin
tasmotaadmin:
container_name: fhem_tasmotaadmin
restart: unless-stopped
image: raymondmm/tasmoadmin:latest
volumes:
- ./tasmotaadmin/data:/data
#- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
ports:
- "8081:80"
networks:
- fhem-network
tasmocompiler:
container_name: fhem_tasmotacompiler
restart: unless-stopped
image: benzino77/tasmocompiler:latest
ports:
- "8082:3000"
networks:
- fhem-network
fhem:
container_name: fhem_fhem
image: fhem/fhem:latest
restart: unless-stopped
depends_on:
- broker
#devices:
# -{usbport}:/dev/usb1
# - "/dev/ttyAMA0:/dev/ttyAMA0"
# - "/dev/ttyUSB0:/dev/ttyUSB0"
# dns: 192.168.1.107
# dns_search: fritz.box
networks:
- fhem-network
ports:
#- "8083:8083"
#- "7072:7072"
- "222:22"
volumes:
- "./fhem/:/opt/fhem/"
- "./pre-init.sh:/docker/pre-init.sh"
- "./post-init.sh:/docker/post-init.sh"
- "./pre-start.sh:/docker/pre-start.sh"
- "./post-start.sh:/docker/post-start.sh"
environment:
#FHEM_UID: 6061
#FHEM_GID: 6061
FHEM_UID: 1000
FHEM_GID: 1000
FHEM_PERM_DIR: 0770
FHEM_PERM_FILE: 0660
LOGFILE: "./log/fhem-%Y-%m.log"
UMASK: 0037
BLUETOOTH_GID: 6001
GPIO_GID: 6002
I2C_GID: 6003
# Shutdown timeout
TIMEOUT: 10
RESTART: 1
TELNETPORT: 7072
TZ: Europe/Berlin
APT_PKGS: "cvs ranger zsh socat rlwrap htop tmux vim"
#CPAN_PKGS: ""
#PIP_PKGS: ""
#NPM_PKGS: ""
# CONFIGTYPE: configDB
# CONFIGTYPE=fhem.cfg.demo
links:
- broker
portainer:
container_name: fhem_portainer
image: portainer/portainer:latest
restart: unless-stopped
depends_on:
- fhem
command: -H unix:///var/run/docker.sock --no-auth
ports:
- "9000:9000"
environment:
- TZ=Europe/Berlin
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/portainer.crt
- REGISTRY_HTTP_TLS_KEY=/certs/portainer.key
volumes:
- "/etc/localtime:/etc/localtime:ro"
#- "/etc/timezone:/etc/timezone:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
- "portainer_data:/data"
- "/home/pirate/certs/portainer.key:/certs/portainer.key"
- "/home/pirate/certs/portainer.crt:/certs/portainer.crt"
networks:
- fhem-network
adminer:
container_name: fhem_adminer
image: adminer:latest
restart: unless-stopped
depends_on:
- fhem
environment:
- TZ=Europe/Berlin
volumes:
- "/etc/localtime:/etc/localtime:ro"
# - "/etc/timezone:/etc/timezone:ro"
ports:
- 9090:8080
networks:
- fhem-network
homebridge:
container_name: fhem_homebridge
image: oznu/homebridge:latest
restart: unless-stopped
environment:
- TZ=Europe/Berlin
- PUID=1000
- PGID=1000
depends_on:
- reverseproxy
- fhem
network_mode: host
command: sh -c "sleep 2 && until ping -qc1 fhem; do sleep 1; done &>/dev/null"
environment:
- TZ=Europe/Berlin
- PGID=1000
- PUID=1000
- HOMEBRIDGE_CONFIG_UI=1
- HOMEBRIDGE_CONFIG_UI_PORT=8080
volumes:
- "./homebridge:/homebridge"
reverseproxy:
container_name: fhem_nginx
restart: unless-stopped
image: nginx:latest
#command: bash -c "sleep 2 && until ping -qc1 fhem; do sleep 1; done &>/dev/null"
environment:
- TZ=Europe/Berlin
- PGID=1000
- PUID=1000
volumes:
- ./reverseproxy/config/nginx.conf:/etc/nginx/nginx.conf
- ./reverseproxy/config/.htpasswd:/etc/nginx/.htpasswd
- ./reverseproxy/config/cert.key:/etc/nginx/cert.key
- ./reverseproxy/config/cert.crt:/etc/nginx/cert.crt
ports:
- 80:80
- 443:443
networks:
- fhem-network
depends_on:
- fhem
deconz:
image: marthoc/deconz
container_name: fhem_deconz
network_mode: host
restart: unless-stopped
volumes:
- ./deconz/root/:/root/.local/share/dresden-elektronik/deCONZ
- ./deconz/otau/:/root/otau
# devices:
# - /dev/ttyACM0
environment:
- TZ=Europe/Berlin
- DECONZ_DEVICE=/dev/ttyACM0
- DECONZ_WEB_PORT=8090
- DECONZ_WS_PORT=8443
- DEBUG_INFO=1
- DEBUG_APS=0
- DEBUG_ZCL=0
- DEBUG_ZDP=0
- DEBUG_OTAU=0
#- DECONZ_VNC_PORT=5900
#- DECONZ_VNC_MODE=1
#- DECONZ_VNC_PASSWORD=changeme
- DECONZ_UPNP=1
watchtower:
image: containrrr/watchtower
container_name: fhem_watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
#- /root/.docker/config.json:/config.json
#command: --interval 1 watchtower eclipse-mosquitto tasmoadmin tasmocompiler fhem portainer adminer homebridge nginx deconz
command: --interval 60
environment:
- TZ='Europe/Berlin'
#- REPO_USER='githubuser'
#- REPO_PASS='password'
#- WATCHTOWER_NOTIFICATIONS=email
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.domain.tld
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=Secret
restart: unless-stopped
influxdb:
image: influxdb:1.8.10
container_name: fhem_influxdb
ports:
- 8086:8086
volumes:
- ./influxdb:/var/lib/influxdb
restart: unless-stopped
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_BUCKET=fhem
volumes:
portainer_data:
networks:
fhem-network:
driver: bridge