mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-18 15:25:41 +00:00
30 lines
994 B
YAML
30 lines
994 B
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 for example Europe/Amsterdam
|
|
- 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
|