-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
111 lines (104 loc) · 3.39 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
version: "3.7"
services:
postgres:
image: postgres:14.2-alpine
container_name: homeAssistantPostgresql
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER-homeAssistantCore}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Missing environment variable see readme}
POSTGRES_DB: ${POSTGRES_DB-homeAssistantCore}
volumes:
- postgresqlData:/var/lib/postgresql/data
networks:
- homeassistant
eclipse-mosquitto:
build:
context: mosquitto
args:
MQTT_PASSWORD: ${MQTT_PASSWORD:?Missing environment variable see readme}
ports:
- 1883:1883
container_name: homeAssistantEclipseMosquitto
restart: unless-stopped
volumes:
- eclipseMosquittoData:/mosquitto/data
- ./mosquitto/config/:/mosquitto/config/:ro # readonly because mosquitto likes to play with permissions
networks:
- homeassistant
zigbee2mqtt:
build:
context: zigbee2mqt
container_name: homeAssistantZigbee2mqtt
restart: unless-stopped
volumes:
- zigbee2mqttData:/app/data
- /run/udev:/run/udev:ro
ports:
- 8124:8080
environment:
TZ: Europe/Berlin
ZIGBEE2MQTT_CONFIG_ADVANCED_NETWORK_KEY: ${ZIGBEE_KEY:?Missing environment variable see readme}
ZIGBEE2MQTT_CONFIG_MQTT_PASSWORD: ${MQTT_PASSWORD:?Missing environment variable see readme}
ZIGBEE2MQTT_CONFIG_FRONTEND_AUTH_TOKEN: ${ZIGBEE2MQTT_AUTH_TOKEN:?Missing environment variable see readme}
devices:
- ${ZIGBEE_USB_DEVICE-/dev/ttyACM0}:/dev/ttyACM0
depends_on:
- eclipse-mosquitto
networks:
- homeassistant
home-assistant:
image: homeassistant/home-assistant:2025.1.0b2
container_name: homeAssistantCore
restart: unless-stopped
volumes:
- homeAssistantData:/config
- ./homeAssistantCore/configuration.yaml:/config/configuration.yaml
- ./homeAssistantCore/ui-lovelace.yaml:/config/ui-lovelace.yaml
- ./homeAssistantCore/custom-config/:/config/custom-config/
- ./homeAssistantCore/www/:/config/www/
environment:
TZ: Europe/Berlin
DB_CONNECTION: postgresql://${POSTGRES_USER-homeAssistantCore}:${POSTGRES_PASSWORD:?Missing environment variable see readme}@postgres:5432/${POSTGRES_DB-homeAssistantCore}
LATITUDE: ${LATITUDE:?Missing environment variable see readme}
LONGITUDE: ${LONGITUDE:?Missing environment variable see readme}
ports:
- 8123:8123
networks:
homeassistant:
dockervlan:
ipv4_address: ${HOME_ASSISTANT_IP:?Missing environment variable see readme}
depends_on:
- eclipse-mosquitto
- zigbee2mqtt
- postgres
mdns-reflector:
image: flungo/avahi:v0.6.32
container_name: homeAssistantMDNSReflector
environment:
REFLECTOR_ENABLE_REFLECTOR: 'true'
restart: unless-stopped
networks:
homeassistant:
dockervlan:
ipv4_address: ${MDNS_REFLECTOR_IP:?Missing environment variable see readme}
volumes:
postgresqlData:
driver: local
eclipseMosquittoData:
driver: local
zigbee2mqttData:
driver: local
homeAssistantData:
driver: local
networks:
homeassistant:
name: homeassistant
dockervlan:
name: dockervlan
driver: macvlan
driver_opts:
parent: ${LAN_NETWORK_DEVICE:?Missing environment variable see readme}
ipam:
config:
- subnet: ${SUBNET:?Missing environment variable see readme}