version: '2.0' services: homeassistant: container_name: home-assistant image: homeassistant/raspberrypi3-homeassistant restart: always volumes: - ./config:/config - /etc/localtime:/etc/localtime:ro - /dev/mem:/dev/mem restart: always privileged: true network_mode: host