Archived
added openhab as stack member
This commit is contained in:
+26
-2
@@ -1,8 +1,30 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
openhab:
|
||||
image: openhab/openhab:milestone-debian
|
||||
container_name: mon_openhab
|
||||
ports:
|
||||
- '8080:8080'
|
||||
networks:
|
||||
- 'monitoring'
|
||||
env_file:
|
||||
- 'openhab.env'
|
||||
volumes:
|
||||
- '/etc/localtime:/etc/localtime:ro'
|
||||
- '/etc/timezone:/etc/timezone:ro'
|
||||
- '/opt/openhab/conf:/openhab/conf'
|
||||
- '/opt/openhab/userdata:/openhab/userdata'
|
||||
- '/opt/openhab/addons:/openhab/addons'
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.openhab == true
|
||||
|
||||
influxdb:
|
||||
image: influxdb
|
||||
container_name: graph_influxdb
|
||||
container_name: mon_influxdb
|
||||
ports:
|
||||
- '8083:8083'
|
||||
- '8086:8086'
|
||||
@@ -19,7 +41,7 @@ services:
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: graph_grafana
|
||||
container_name: mon_grafana
|
||||
ports:
|
||||
- "3001:3000"
|
||||
networks:
|
||||
@@ -39,6 +61,8 @@ services:
|
||||
networks:
|
||||
monitoring:
|
||||
volumes:
|
||||
openhab-volume:
|
||||
external: true
|
||||
grafana-volume:
|
||||
external: true
|
||||
influxdb-volume:
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
USER_ID=999
|
||||
GROUP_ID=994
|
||||
CRYPTO_POLICY=unlimited
|
||||
Reference in New Issue
Block a user