-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
57 lines (57 loc) · 1.15 KB
/
docker-compose.yaml
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
version: '3'
services:
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:stable
depends_on:
- mariadb
restart: unless-stopped
environment:
- DISABLE_JEMALLOC=true
# devices:
# - /dev/ttyUSB0:/dev/ttyUSB0
# - /dev/ttyUSB1:/dev/ttyUSB1
volumes:
- ./config/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
networks:
- public
- app
- data
ports:
- 8123:8123
mariadb:
container_name: mariadb
image: mariadb:latest
restart: unless-stopped
environment:
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE=homeassistant
- MYSQL_ROOT_PASSWORD
volumes:
- ./data/recorder:/var/lib/mysql
networks:
- data
ports:
- 3306:3306
nodered:
container_name: nodered
build: ./containers/nodered/
user: root
depends_on:
- homeassistant
restart: unless-stopped
environment:
- NODE_RED_CREDENTIAL_SECRET
volumes:
- ./config/nodered:/data
networks:
- app
ports:
- 1880:1880
networks:
public:
driver: bridge
data:
app: