Skip to content

Instantly share code, notes, and snippets.

@pettazz
Created November 15, 2020 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pettazz/bbeac674c19819704f412a4561bb94ea to your computer and use it in GitHub Desktop.
Save pettazz/bbeac674c19819704f412a4561bb94ea to your computer and use it in GitHub Desktop.
home-assistant docker-compose.yml
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
@pettazz
Copy link
Author

pettazz commented Nov 15, 2020

Create /opt/home-assistant and /opt/home-assistant/config, put this in /opt/home-assistant as docker-compose.yml, run with docker-compose up. See https://gist.github.com/pettazz/646628176e365a897cd368907308de1b for using it as a systemd service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment