Skip to content

Instantly share code, notes, and snippets.

@RajivCodeLab
Created April 18, 2024 17:52
Show Gist options
  • Save RajivCodeLab/09f11d48ecbf0f9e9fb7ffd5eda2b369 to your computer and use it in GitHub Desktop.
Save RajivCodeLab/09f11d48ecbf0f9e9fb7ffd5eda2b369 to your computer and use it in GitHub Desktop.
Setup Home Assistant on Docker Windows (2024)
version: "3.9"
services:
homeassistant:
container_name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- 'C:\docker\homeassistant:/config'
environment:
- IN=Asia/Calcutta # You can find your time zone here - https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
ports:
- '8123:8123'
restart: always
healthcheck:
test: 'curl -m 90 -sLf http://localhost:8123 || date >> /config/healthcheck' #| pkill -9 python3'
interval: 120s
timeout: 60s
retries: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment