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