Created
November 15, 2020 18:54
-
-
Save pettazz/bbeac674c19819704f412a4561bb94ea to your computer and use it in GitHub Desktop.
home-assistant docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
homeassistant: | |
container_name: home-assistant | |
image: homeassistant/home-assistant:stable | |
volumes: | |
- /opt/home-assistant/config:/config | |
devices: | |
- /dev/ttyUSB1:/dev/ttyUSB1 | |
environment: | |
- TZ=America/New_York | |
restart: always | |
network_mode: host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create
/opt/home-assistant
and/opt/home-assistant/config
, put this in/opt/home-assistant
asdocker-compose.yml
, run withdocker-compose up
. See https://gist.github.com/pettazz/646628176e365a897cd368907308de1b for using it as a systemd service.