forked from ct-Open-Source/ct-Smart-Home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.1 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
version: '3.6'
services:
nodered:
# image: ghcr.io/ct-open-source/ctnodered:latest
build:
context: ./docker-image
no_cache: true
args:
ARCH: amd64
NODE_VERSION: lts
NODE_RED_VERSION: latest
OS: alpine
# BUILD_DATE: "$(date +"%Y-%m-%dT%H:%M:%SZ")"
TAG_SUFFIX: default
volumes:
- ./data/nodered:/data
- /etc/localtime:/etc/localtime
depends_on:
- mqtt
restart: always
network_mode: 'host'
environment:
- TZ=Europe/Berlin
mqtt:
image: 'eclipse-mosquitto'
ports:
- '1883:1883'
- '9001:9001'
volumes:
- ./data/mqtt:/mosquitto
- /etc/localtime:/etc/localtime
restart: always
environment:
- TZ=Europe/Berlin
zigbee:
image: koenkk/zigbee2mqtt
volumes:
- ./data/zigbee:/app/data
- /run/udev:/run/udev:ro
- /etc/localtime:/etc/localtime
devices:
- '/dev/ttyACM0:/dev/ttyACM0'
- '/dev/ttyACM1:/dev/ttyACM1'
restart: always
privileged: true
ports:
- 1881:1881
environment:
- TZ=Europe/Berlin