Comments (4)
It appears you're trying to remap the controller http port 8080 to the external/host port 8888 - 8888:8080
. I assume this is because you already have another service or container operating on TCP port 8080 on your host.
That port mapping change won't work without also setting unifi.http.port=8888
in the controller ${DATADIR}/system.properties
file. At that point you'd also need to change your port mapping to: - 8888:8888
.
The UniFi controller software has to explicitly know which ports it's using so it can send that information to the managed devices in their connection strings/config. This means you can't use the transparent remapping function of Docker.
This also affects the container health check script since it defaults to checking that the API is running and responding properly on port 8080 unless an alternate is set in system.properties
.
- https://help.ubnt.com/hc/en-us/articles/204910084-UniFi-Changing-Default-Ports-for-Controller-and-UAPs
- https://help.ubnt.com/hc/en-us/articles/205202580-UniFi-system-properties-File-Explanation
- https://help.ubnt.com/hc/en-us/articles/218506997
from unifi.
Aha ok that makes total sense for the second method.
But the first method, using "network-mode: host", isn't that just suppose to work?
No port forwarding happening there.
from unifi.
network_mode: host
still uses/attaches ports on the Docker host, so if there's something else already occupying one of the UniFi ports on the host the controller will fail to function properly. You would need to check other running containers and the host processes via netstat
or other commands to determine what might be on the required ports. From there you'd need to move the conflicting service, or adjust the controller settings to move the UniFi controller service(s) to an unused port.
from unifi.
Ah that makes a lot of sense. Indeed that port was used already. I'll close this one. Thanks a lot for the clarification!
from unifi.
Related Issues (20)
- Apache Log4j2 2.14.1 Remote Code Execution HOT 1
- 6.5.55 RC is out HOT 1
- something wrong after a while HOT 1
- goofball222/unifi:latest-beta 7.2.92 - "DBServer stopped" HOT 3
- f_chown() should not run if group has access HOT 1
- Current alpine images are missing shared library libsystemd.so.0 HOT 1
- "docker-entrypoint.sh": executable file not found in $PATH: unknown. HOT 4
- Cannot login after switch from internal to external MongoDB HOT 2
- Will there be an update to 7.4.156? HOT 1
- Failure upgrading to 7.4.156 HOT 4
- Beta images incorrectly tagged (7.4.165 vs 7.5.165) and failing due to JDK mismatch (11 vs 17) HOT 2
- Failed to upgrade from 1.1.3 (7.5.176) to 1.2.1 (8.0.7) on TrueNAS Scale 23.10.0.1 HOT 1
- DEBUG set to false, but DEBUG tasks are still filling the log HOT 2
- Question about versioning / tagging of containers
- Debian base - MongoDB 3.6 Release Signing Key EXPKEYSIG HOT 2
- Alow disabling log output to stdout HOT 2
- Version 8.1.104 breaks external Mongo DB support HOT 6
- Bad Request This combination of host and port requires TLS. HOT 4
- Need 8.1.113 non-beta please :) HOT 1
- Unifi 6.5.53 stable Release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi.