Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
33 lines (29 loc) · 1.53 KB
/
Copy pathcompose.yaml
File metadata and controls
33 lines (29 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
ha-version-control:
# Home Assistant Version Control
# Image: https://github.com/saihgupr/HomeAssistantVersionControl/pkgs/container/home-assistant-version-control
# Or build locally with: docker build -t ghcr.io/saihgupr/home-assistant-version-control:latest ./homeassistant-version-control
image: ghcr.io/saihgupr/home-assistant-version-control:latest
container_name: ha-version-control
ports:
- "54001:54001"
environment:
# Set your timezone
- TZ=America/New_York
# Optional: Add your Home Assistant Supervisor token to enable HA API features
# This allows the addon to restart HA and reload automations/scripts after restore
- SUPERVISOR_TOKEN=your_long_lived_access_token_here
# Optional: Home Assistant URL (required for Docker mode to enable reload/restart features)
# Format: http://homeassistant.local:8123 or http://192.168.1.100:8123
- HA_URL=http://homeassistant.local:8123
volumes:
# Mount your Home Assistant config directory
# This directory will be tracked for changes
- /path/to/your/ha/config:/config
# Optional: mount Home Assistant /share if you want to track additional paths there
# Then set additional_paths in add-on options (or /data/options.json) to include /share subpaths
- /path/to/your/ha/share:/share
# Optional: Persist settings between container restarts
# Create this directory or use any path you prefer
- /path/to/havc-data:/data
restart: unless-stopped