-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·82 lines (75 loc) · 1.6 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
version: '3.9'
services:
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:2.0.18
user: 1883:996
ports:
- 1883:1883
- 9001:9001
restart: always
volumes:
- ./mosquitto/:/mosquitto/:rw
env_file:
- .env
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt:1.33.2
network_mode: host
restart: always
volumes:
- ./zigbee2mqtt:/app/data
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
depends_on:
- mosquitto
node-red:
container_name: node-red
image: nodered/node-red:3.1.0
ports:
- 1880:1880
restart: always
volumes:
- ./node-red:/data
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
env_file:
- .env
depends_on:
- mosquitto
environment:
- TZ=Europe/Prague
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:2023.10
volumes:
- ./home-assistant:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
network_mode: host
depends_on:
- mosquitto
- mariadb
code-server:
container_name: code-server
image: linuxserver/code-server:4.18.0
restart: unless-stopped
ports:
- 8443:8443
volumes:
- ./vscode:/config
- ./home-assistant:/config/workspace
environment:
- TZ=Europe/Prague
- PUID=1000
- PGID=1000
mariadb:
image: linuxserver/mariadb:10.11.5
container_name: mariadb
restart: unless-stopped
env_file:
- .env
volumes:
- ./mariadb:/var/lib/mysql
ports:
- "3306:3306"