docker-bits/lsio/homeassistant/docker-compose.yaml

30 lines
1.0 KiB
YAML
Raw Normal View History

2022-01-21 00:33:41 +00:00
# [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.
2021-04-10 10:16:29 +00:00
---
version: "2.1"
services:
homeassistant:
image: ghcr.io/linuxserver/homeassistant
container_name: homeassistant
network_mode: host
environment:
# for UserID
2022-04-02 00:45:58 +00:00
- PUID=${PUID:-1024}
# for GroupID
2021-04-10 10:16:29 +00:00
- PGID=${PGID:-100}
2023-02-12 01:01:09 +00:00
# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
2021-04-13 00:58:58 +00:00
- TZ=${TZ:-Europe/Amsterdam}
2021-04-10 10:16:29 +00:00
volumes:
# Home Assistant config storage path.
- ${BASEDIR:-/volume1/docker}/homeassistant/config:/config
2021-07-03 00:46:07 +00:00
ports:
# Application WebUI, only use this if you are not using host mode.
- 8123:8123 # optional
2021-04-10 10:16:29 +00:00
devices:
# For passing through USB, serial or gpio devices.
2022-01-21 00:33:41 +00:00
- /path/to/device:/path/to/device # optional
2021-04-10 10:16:29 +00:00
restart: unless-stopped