Created
April 18, 2024 17:52
-
-
Save RajivCodeLab/09f11d48ecbf0f9e9fb7ffd5eda2b369 to your computer and use it in GitHub Desktop.
Setup Home Assistant on Docker Windows (2024)
This file contains 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: "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