-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
76 lines (74 loc) · 1.89 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
version: "2.2"
services:
openhab:
image: "openhab/openhab:3.0.0"
container_name: openhab
restart: always
network_mode: host
volumes:
# If you are on Windows delete the /etc/localtime and /etc/timezone lines
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "${PWD}/openhab_addons:/openhab/addons"
- "${PWD}/openhab_conf:/openhab/conf"
- "${PWD}/openhab_userdata:/openhab/userdata"
environment:
OPENHAB_HTTP_PORT: "8080"
OPENHAB_HTTPS_PORT: "8443"
USER_ID: ${UID}
GROUP_ID: ${GID}
EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"
ports:
- "8080:8080"
- "8443:8443"
influxdb:
image: influxdb:latest
container_name: influxdb
restart: always
network_mode: host
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
- "25826:25826/udp"
- "2003:2003"
env_file:
# Check the file to set default password!
- "${PWD}/env.influxdb"
volumes:
- "${PWD}/influxdb/data:/var/lib/influxdb/"
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
network_mode: host
user: "${UID}:${GID}"
ports:
- "3000:3000"
env_file:
- "${PWD}/env.grafana"
volumes:
- "${PWD}/grafana/data:/var/lib/grafana/"
nodered:
# If you are running on RaspBerryPi change the image to
# nodered/node-red-docker:rpi
image: nodered/node-red:latest
container_name: nodered
restart: always
network_mode: host
user: root
ports:
- "1880:1880"
volumes:
- ./nodered:/data
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto
restart: always
network_mode: host
ports:
- "1883:1883"
- "9001:9001"
volumes:
- "${PWD}/mosquitto/conf:/mosquitto/config/"
- "${PWD}/mosquitto/data/:/mosquitto/data/"