Skip to content

Instantly share code, notes, and snippets.

@peyanski
Last active March 21, 2024 07:24
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save peyanski/4d803963e890955886d40ae00d1cfb90 to your computer and use it in GitHub Desktop.
Save peyanski/4d803963e890955886d40ae00d1cfb90 to your computer and use it in GitHub Desktop.
docker-compose.yml file for Home Assistant for Windows
version: "3.9"
services:
homeassistant:
container_name: ha
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- 'C:\homeassistant:/config'
environment:
- TZ=Europe/Sofia # get your Time Zone from - https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# network_mode: host
ports:
- '8123:8123'
restart: always
# you can comment all the rows below if you don't need health check
healthcheck:
test: 'curl -m 90 -sLf http://localhost:8123 || date >> /config/healthcheck' #| pkill -9 python3'
interval: 90s
timeout: 60s
retries: 2
@yaminahacs
Copy link

Thanks for this. But it doesn’t pick up usb devices like coral TPU or windows GPU for hardware acceleration. May you help with that please?

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