Bot Updating Documentation

pull/42/head
LinuxServer-CI 2021-07-02 23:28:38 +00:00
rodzic bb874b65ae
commit 90e5d31e7b
1 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -55,6 +55,8 @@ services:
- TZ=Europe/London
volumes:
- /path/to/data:/config
ports:
- 8123:8123 #optional
devices:
- /path/to/device:/path/to/device
restart: unless-stopped
@ -69,12 +71,24 @@ docker run -d \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-p 8123:8123 `#optional` \
-v /path/to/data:/config \
--device /path/to/device:/path/to/device \
--restart unless-stopped \
ghcr.io/linuxserver/homeassistant
```
#### Host vs. Bridge
Home Assistant can [discover][hb0] and automatically configure
[zeroconf][hb1]/[mDNS][hb2] and [UPnP][hb3] devices on your network. In
order for this to work you must create the container with `--net=host`.
[hb0]: https://www.home-assistant.io/integrations/discovery/#mdns-and-upnp
[hb1]: https://en.wikipedia.org/wiki/Zero-configuration_networking
[hb2]: https://en.wikipedia.org/wiki/Multicast_DNS
[hb3]: https://en.wikipedia.org/wiki/Universal_Plug_and_Play
## Parameters
Docker images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
@ -83,6 +97,7 @@ Docker images are configured using parameters passed at runtime (such as those a
| Parameter | Function |
| :----: | --- |
| `8123` | Application WebUI, only use this if you are not using host mode. |
#### Networking (`--net`)