Created
July 16, 2020 09:58
-
-
Save pashok2398/b347d5a2da1987b458ec941cc9895a85 to your computer and use it in GitHub Desktop.
openhab-docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure to backup your openhab directory
/home/paveld/openhab/
in my case :)