Newer
Older
openhab / docker-compose.yml
version: '2.1'

services:
    main-openhab:
      image: openhab/openhab:2.0.0-${OPENHAB_ARCH:-amd64}
      mem_limit: 2g
      restart: always
      environment:
        - USER_ID=${OPENHAB_USER_ID}
      volumes:
        - /etc/localtime:/etc/localtime:ro
        - /etc/timezone:/etc/timezone:ro
        - ./data/conf/:/openhab/conf/
        - ./data/userdata/:/openhab/userdata/
        - ./data/addons/:/openhab/addons/
      tmpfs:
        - /tmp:rw,size=100m
      ports:
        - "${OPENHAB_HTTP_BIND:-127.0.0.1}:${OPENHAB_HTTP_PORT:-8080}:8080"
        - "${OPENHAB_HTTPS_BIND:-127.0.0.1}:${OPENHAB_HTTPS_PORTS:-8443}:8443"
        - "${OPENHAB_OSGI_BIND:-127.0.0.1}:${OPENHAB_OSGI_PORT:-5555}:5555"