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