version: '2.1' services: main-openhab: image: openhab/openhab:2.0.0-${OPENHAB_ARCH:-amd64} mem_limit: 2g restart: always ##user: ${OPENHAB_USER:-openhab:eopnhab} 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_BIND:-127.0.0.1}:${OPENHAB_PORT:-8080}:8080"