added openhab as stack member

This commit is contained in:
Gorden Mende
2021-09-29 09:20:04 +02:00
parent 9b6f7167be
commit bdb9956249
2 changed files with 59 additions and 32 deletions
+26 -2
View File
@@ -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:
+3
View File
@@ -0,0 +1,3 @@
USER_ID=999
GROUP_ID=994
CRYPTO_POLICY=unlimited