kopia lustrzana https://github.com/linuxserver/docker-documentation
Bot Updating Documentation
rodzic
98c15b00cf
commit
b7146ce56a
|
@ -32,10 +32,40 @@ The architectures supported by this image are:
|
||||||
|
|
||||||
Here are some example snippets to help you get started creating a container from this image.
|
Here are some example snippets to help you get started creating a container from this image.
|
||||||
|
|
||||||
### docker
|
### docker-compose ([recommended](https://docs.linuxserver.io/general/docker-compose))
|
||||||
|
|
||||||
|
Compatible with docker-compose v2 schemas.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
version: "2.1"
|
||||||
|
services:
|
||||||
|
unifi-controller:
|
||||||
|
image: linuxserver/unifi-controller
|
||||||
|
container_name: unifi-controller
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- MEM_LIMIT=1024M #optional
|
||||||
|
volumes:
|
||||||
|
- <path to data>:/config
|
||||||
|
ports:
|
||||||
|
- 3478:3478/udp
|
||||||
|
- 10001:10001/udp
|
||||||
|
- 8080:8080
|
||||||
|
- 8443:8443
|
||||||
|
- 1900:1900/udp #optional
|
||||||
|
- 8843:8843 #optional
|
||||||
|
- 8880:8880 #optional
|
||||||
|
- 6789:6789 #optional
|
||||||
|
- 5514:5514 #optional
|
||||||
|
restart: unless-stopped
|
||||||
|
```
|
||||||
|
|
||||||
|
### docker cli
|
||||||
|
|
||||||
```
|
```
|
||||||
docker create \
|
docker run -d \
|
||||||
--name=unifi-controller \
|
--name=unifi-controller \
|
||||||
-e PUID=1000 \
|
-e PUID=1000 \
|
||||||
-e PGID=1000 \
|
-e PGID=1000 \
|
||||||
|
@ -70,37 +100,6 @@ This image provides various versions that are available via tags. `latest` tag p
|
||||||
When using a Security Gateway (router) it could be that network connected devices are unable to obtain an ip address. This can be fixed by setting "DHCP Gateway IP", under Settings > Networks > network_name, to a correct (and accessable) ip address.
|
When using a Security Gateway (router) it could be that network connected devices are unable to obtain an ip address. This can be fixed by setting "DHCP Gateway IP", under Settings > Networks > network_name, to a correct (and accessable) ip address.
|
||||||
|
|
||||||
|
|
||||||
### docker-compose
|
|
||||||
|
|
||||||
Compatible with docker-compose v2 schemas.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
version: "2.1"
|
|
||||||
services:
|
|
||||||
unifi-controller:
|
|
||||||
image: linuxserver/unifi-controller
|
|
||||||
container_name: unifi-controller
|
|
||||||
environment:
|
|
||||||
- PUID=1000
|
|
||||||
- PGID=1000
|
|
||||||
- MEM_LIMIT=1024M #optional
|
|
||||||
volumes:
|
|
||||||
- <path to data>:/config
|
|
||||||
ports:
|
|
||||||
- 3478:3478/udp
|
|
||||||
- 10001:10001/udp
|
|
||||||
- 8080:8080
|
|
||||||
- 8443:8443
|
|
||||||
ports:
|
|
||||||
- 1900:1900/udp #optional
|
|
||||||
- 8843:8843 #optional
|
|
||||||
- 8880:8880 #optional
|
|
||||||
- 6789:6789 #optional
|
|
||||||
- 5514:5514 #optional
|
|
||||||
restart: unless-stopped
|
|
||||||
```
|
|
||||||
|
|
||||||
## Parameters
|
## 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.
|
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.
|
||||||
|
@ -184,9 +183,9 @@ Use `ubnt` as the password to login and `$address` is the IP address of the host
|
||||||
|
|
||||||
|
|
||||||
## Docker Mods
|
## Docker Mods
|
||||||
[](https://mods.linuxserver.io/?mod=unifi-controller "view available mods for this container.")
|
[](https://mods.linuxserver.io/?mod=unifi-controller "view available mods for this container.") [](https://mods.linuxserver.io/?mod=universal "view available universal mods.")
|
||||||
|
|
||||||
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) can be accessed via the dynamic badge above.
|
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
|
||||||
|
|
||||||
|
|
||||||
## Support Info
|
## Support Info
|
||||||
|
|
Ładowanie…
Reference in New Issue