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
|
|
|
|
|
|
|
source ./.env
|
|
|
|
docker run -d \
|
|
|
|
--name=homeassistant \
|
|
|
|
--net=host `# Shares host networking with container. Required for some devices to be discovered by Home Assistant.` \
|
|
|
|
-e PUID=${PUID:-1024} `# for GroupID` \
|
|
|
|
-e PGID=${PGID:-100} `# for UserID` \
|
2021-04-13 00:58:58 +00:00
|
|
|
-e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \
|
2021-07-03 00:46:07 +00:00
|
|
|
-p 8123:8123 `# optional` `# Application WebUI, only use this if you are not using host mode.` \
|
2021-04-10 10:16:29 +00:00
|
|
|
-v ${BASEDIR:-/volume1/docker}/homeassistant/config:/config `# Home Assistant config storage path.` \
|
2022-01-21 00:33:41 +00:00
|
|
|
--device /path/to/device:/path/to/device `# optional` `# For passing through USB, serial or gpio devices.` \
|
2021-04-10 10:16:29 +00:00
|
|
|
--restart unless-stopped \
|
|
|
|
ghcr.io/linuxserver/homeassistant
|