docker-bits/lsio/homeassistant/docker-compose.yaml
2023-02-26 14:51:38 +00:00

30 lines
1.0 KiB
YAML

# [Home Assistant Core](https://www.home-assistant.io/) - Open source home
# automation that puts local control and privacy first. Powered by a worldwide
# community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi
# or a local server.
---
version: "2.1"
services:
homeassistant:
image: ghcr.io/linuxserver/homeassistant
container_name: homeassistant
network_mode: host
environment:
# for UserID
- PUID=${PUID:-1024}
# for GroupID
- PGID=${PGID:-100}
# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
- TZ=${TZ:-Europe/Amsterdam}
volumes:
# Home Assistant config storage path.
- ${BASEDIR:-/volume1/docker}/homeassistant/config:/config
ports:
# Application WebUI, only use this if you are not using host mode.
- 8123:8123 # optional
devices:
# For passing through USB, serial or gpio devices.
- /path/to/device:/path/to/device # optional
restart: unless-stopped