diff --git a/openhab/docker-compose.yml b/openhab/docker-compose.yml new file mode 100644 index 0000000..9174079 --- /dev/null +++ b/openhab/docker-compose.yml @@ -0,0 +1,35 @@ +version: '2.2' + +services: + openhab: + image: openhab/openhab + container_name: openhab + restart: always + network_mode: host + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - addons:/openhab/addons + - conf:/openhab/conf + - data:/openhab/userdata + environment: + CRYPTO_POLICY: "unlimited" + EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin" + OPENHAB_HTTP_PORT: "8080" + OPENHAB_HTTPS_PORT: "8443" + + openhab-log: + image: welteki/frontail-openhab:latest + container_name: openhab-log + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + - data:/openhab/userdata:ro + +volumes: + addons: + driver: local + conf: + driver: local + data: + driver: local