-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-stack-smartcopilot.yml
More file actions
37 lines (33 loc) · 1.05 KB
/
docker-stack-smartcopilot.yml
File metadata and controls
37 lines (33 loc) · 1.05 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
34
35
36
37
version: "3.8"
# Shared network for Home Assistant and the assistant container
networks:
ha-net:
# Persistent configuration and log volume
volumes:
ha_config:
services:
# Main Home Assistant instance
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- ha_config:/config # store configuration
- ha_config/logs:/config/logs # persistent logs
environment:
TZ: "${TZ:-UTC}" # timezone from host
networks:
- ha-net
# Container running the SmartCopilot integration
smartcopilot:
image: ghcr.io/valurii/smarthomecopilot:latest
volumes:
- ha_config:/config # share config with Home Assistant
- ha_config/logs:/config/logs # same log directory
environment:
HASS_TOKEN: "${HASS_TOKEN}" # token to access HA API
OLLAMA_URL: "${OLLAMA_URL}" # local model endpoint
OPENAI_API_KEY: "${OPENAI_API_KEY:-}" # optional cloud key
networks:
- ha-net
deploy:
restart_policy:
condition: on-failure