-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
220 lines (211 loc) · 5.58 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
version: '3.3'
services:
hotspot:
container_name: hotspot
restart: unless-stopped
image: sdelrio/rpi-hostap:0.31
environment:
- INTERFACE=wlan0
network_mode: host
privileged: true
profiles:
- no-network
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
homebridge:
container_name: homebridge
restart: unless-stopped
image: "afharo/homebridge:0.0.98"
volumes:
- ./data/homebridge:/root/.homebridge
env_file:
- ./data/homebridge/homebridge.env
privileged: true
network_mode: host
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
mqtt:
container_name: mqtt
restart: unless-stopped
image: eclipse-mosquitto:2.0
volumes:
- "./data/mosquitto:/mosquitto"
ports:
- "1883:1883"
- "9001:9001"
command: "mosquitto -c /mosquitto-no-auth.conf"
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
zigbee2mqtt:
container_name: zigbee2mqtt
restart: unless-stopped
image: koenkk/zigbee2mqtt:1.40.2
volumes:
- ./data/zigbee2mqtt:/app/data
- /run/udev:/run/udev:ro
ports:
- "8080:8080"
environment:
- TZ=Europe/Madrid
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
esphome:
container_name: esphome
restart: always
image: ghcr.io/esphome/esphome:2024.10.2
volumes:
- ./data/esphome/config:/config
- /etc/localtime:/etc/localtime:ro
privileged: true
network_mode: host
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
matter-server:
image: ghcr.io/home-assistant-libs/python-matter-server:6.6.0
container_name: matter-server
restart: unless-stopped
# Required for mDNS to work correctly
network_mode: host
security_opt:
# Needed for Bluetooth via dbus
- apparmor:unconfined
volumes:
# Create an .env file that sets the USERDIR environment variable.
- ./data/matter-server/:/data/
- /run/dbus:/run/dbus:ro # Needed for Bluetooth
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
homeassistant:
container_name: homeassistant
restart: unless-stopped
image: "homeassistant/home-assistant:2024.10.4"
volumes:
- ./data/homeassistant:/config
- ./data/media:/media # Persist any files uploaded to "My media"
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro # Necessary for the Bluetooth integration
privileged: true
network_mode: host
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
duplicati:
container_name: duplicati
restart: unless-stopped
image: linuxserver/duplicati:2.0.8
environment:
- PUID=0 # run "id $USER" to fetch these (using root because some containers like homeassistant are privileged and write as root)
- PGID=0
- TZ=Europe/Madrid
- CLI_ARGS= #optional
volumes:
- ./data/duplicati:/config
- ./BACKUPS:/backups
- ./data:/source
ports:
- "8200:8200"
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
##############################################################
# REMOTE ACCESS #
##############################################################
# Dynamic DNS
duckdns:
# Using `latest` because it doesn't follow semantic versioning
image: linuxserver/duckdns:latest
container_name: duckdns
env_file:
- ./data/duckdns/duckdns.env
environment:
- PUID=1000 #optional
- PGID=1000 #optional
- TZ=Europe/Madrid #optional
- LOG_FILE=false #optional
volumes:
- ./data/duckdns/config:/config #optional
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
# VPN
wireguard:
image: linuxserver/wireguard:1.0.20210914
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE #optional
env_file:
- ./data/wireguard/wireguard.env
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- SERVERPORT=51820 #optional
- PEERS=1 #optional
- PEERDNS=auto #optional
- INTERNAL_SUBNET=10.13.13.0 #optional
- ALLOWEDIPS=0.0.0.0/0 #optional
- PERSISTENTKEEPALIVE_PEERS=1 #optional
- LOG_CONFS=true #optional
volumes:
- ./data/wireguard/config:/config
- /lib/modules:/lib/modules #optional
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"
##############################################################
# AdBlocker #
##############################################################
# Docs in https://hub.docker.com/r/adguard/adguardhome
adguard:
container_name: adguard
restart: unless-stopped
image: "adguard/adguardhome:v0.107.53"
volumes:
- ./data/adguard/data:/opt/adguardhome/work
- ./data/adguard/config:/opt/adguardhome/conf
ports:
# DNS pors
- "53:53/tcp"
- "53:53/udp"
# UI
- "3000:3000/tcp"
logging:
driver: json-file
options:
max-size: "10mb"
max-file: "1"