This repository has been archived on 2024-05-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

96 lines
2.1 KiB
YAML

version: "3.7"
services:
openhab:
image: openhab/openhab:milestone
container_name: openhab
ports:
- '8080:8080'
- '8443:8443'
networks:
- 'home'
env_file:
- 'openhab.env'
volumes:
- '/etc/localtime:/etc/localtime:ro'
# - '/etc/timezone:/etc/timezone:ro'
- '/volume1/docker/openhab/conf:/openhab/conf'
- '/volume1/docker/openhab/userdata:/openhab/userdata'
- '/volume1/docker/openhab/addons:/openhab/addons'
# labels:
# com.centurylinklabs.watchtower.enable: "true"
# deploy:
# mode: replicated
# replicas: 1
# placement:
# constraints:
# - node.labels.openhab == true
influxdb:
image: influxdb:2.0
container_name: influxdb
ports:
- '8083:8083'
- '8086:8086'
- '8090:8090'
networks:
- 'home'
env_file:
- 'influxdb.env'
volumes:
- '/volume1/docker/influxdb:/var/lib/influxdb'
# labels:
# com.centurylinklabs.watchtower.enable: "true"
# deploy:
# mode: replicated
# replicas: 1
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3001:3000"
networks:
- 'home'
env_file:
- 'grafana.env'
user: "0"
volumes:
- '/volume1/docker/grafana:/var/lib/grafana'
# labels:
# com.centurylinklabs.watchtower.enable: "true"
# deploy:
# mode: replicated
# replicas: 1
# placement:
# constraints:
# - node.labels.grafana == true
telegraf:
image: telegraf:latest
container_name: telegraf
# restart: always
# extra_hosts:
# - "influxdb:192.168.0.40"
networks:
- 'home'
environment:
HOST_PROC: /host/proc
HOST_SYS: /host/sys
HOST_ETC: /host/etc
volumes:
- /volume1/docker/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/host/sys:ro
- /proc:/host/proc:ro
- /etc:/host/etc:ro
networks:
home:
#volumes:
# openhab-volume:
# external: true
# grafana-volume:
# external: true
# influxdb-volume:
# external: true