Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
openhab-docker-compose.yaml
version: "3"
services:
openhab:
image: openhab/openhab:2.5.5
restart: always
network_mode: "host"
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/hosts:/etc/hosts"
- "/home/paveld/openhab/openhab_addons:/openhab/addons"
- "/home/paveld/openhab/openhab_conf:/openhab/conf"
- "/home/paveld/openhab/openhab_userdata:/openhab/userdata"
- "/home/paveld/openhab/backup/:/backup"
environment:
OPENHAB_HTTP_PORT: 8080
OPENHAB_HTTPS_PORT: 8443
EXTRA_JAVA_OPTS: "-Duser.timezone=Asia/Jerusalem"
frontail:
image: mthenw/frontail
restart: always
ports:
- "9001:9001"
volumes:
- "/home/paveld/openhab/openhab_userdata/logs/:/log"
command: ["-n", "500", "/log/events.log", "/log/openhab.log"]
grafana:
image: grafana/grafana:latest
restart: always
container_name: grafana
environment:
GF_AUTH_ANONYMOUS_ENABLED: 'true'
ports:
- "3000:3000"
volumes:
- "/home/paveld/openhab/persist/grafana:/var/lib/grafana"
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: ChangeMe
POSTGRES_DB: openhab
volumes:
- "/home/paveld/openhab/persist/postgresql:/var/lib/postgresql/data"
ports:
- "5432:5432"
influxdb:
image: influxdb
restart: always
environment:
INFLUXDB_DB: openhab_db
INFLUXDB_ADMIN_USER: openhab
INFLUXDB_ADMIN_PASSWORD: ChangeMe
volumes:
- "/home/paveld/openhab/persist/influxdb:/var/lib/influxdb"
ports:
- "8086:8086"
tasmoAdmin:
image: raymondmm/tasmoadmin
restart: always
volumes:
- "/home/paveld/openhab/persist/tasmoadmin:/data"
ports:
- "5555:80"
tasmoBackup:
image: danmed/tasmobackupv1
restart: always
environment:
DBTYPE: sqlite
DBNAME: data/tasmobackup
volumes:
- "/home/paveld/openhab/persist/tasmobackup:/var/www/html/data"
ports:
- "8259:80"
@pashok2398

This comment has been minimized.

Copy link
Owner Author

@pashok2398 pashok2398 commented Jul 16, 2020

Make sure to backup your openhab directory /home/paveld/openhab/ in my case :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment