-
-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve configure publish ports #407
Conversation
Thank you for this suggestion. I think it's time that this change can be implemented. In the beginning, we didn't advertise too much for the Since a while this has changed and it's afaik the default for most user to create the @tobiasge what do you think? I'd target this for |
I've had this problem, too and thought what a good solution would be. Problem with this fix is, that your distributed docker-compose.yml does not provide a ready to run configuration as the web GUI would not be accessible. From my point of view a good compromise would be to define
Using this a local access to the GUI is possible plus the GUI is not exposed to "the internet" (which is the crucial part with the current docker-compose.yml from my point of view). Then a NGINX container or whatever could get attached to that local listening port. |
Sorry to say this, but this suggestion would be even worse than the current solution. The reason is, as explained by @centum, that it's just not possible to override ports from the
|
I don't like the idea of removing the ports completely, because it will make a first start harder for a user. At the moment a user can start the system without any additional files needed. |
I see the point: it should be easy to get to a production ready configuration usering an override (as it was before with the included NGINX). On the other hand we should avoid exposing the users to a security risk as we would do when exposing the Netbox GUI directly to the internet as the current docker-sompose does. Plus this currently could not "swicted off" with the compose. I think "in production" nobody will use the netbox container as endpoint for GUI requests. One always would take some webserver to distribute the netbox endpoint "to the world", especially as TLS is required nowadays. So from my point of view the purpose of the docker-compose.yml is to give people an easy going possibility to get Netbox running for testing purposes ("to try out the product"). We should avoid that people expect this docker-compose as production ready. And the easiest solution is to terminate the GUI on localhost by default. One could then provide a docker-compose_production.yml example... But maybe this should be in the responsibility of whoever want's to run Netbox in production. The end-user needs to integrate that into his/her IT... |
The current instruction says to create a |
Even despite our recommendation to do so, this assumption does – as per my experience talking to some users – not hold, unfortunately.
This is mostly what I have in mind when working on Netbox Docker. There is another important purpose, which initially triggered this project: Development for and on Netbox. And this may require to have multiple instances of Netbox Docker running in parallel, something that was – out of the box – easily achieved with the current
IMO this is achieved by the Use |
@tobiasge IMO this only holds true for very experience Docker users, as one has to figure out the port on which Netbox Docker binds (through I also see it as a benefit that folks are advised to create a |
How about adding a |
Related Issue:
New Behavior
Docker published port defined in
docker-compose.override.yml
only.Contrast to Current Behavior
Defined new published ports in config
docker-compose.override.yml
don't overlap definition it indocker-compose.yml
. The docker-compose concatenates them in the one config.https://docs.docker.com/compose/extends/#adding-and-overriding-configuration
Discussion: Benefits and Drawbacks
Denied publish HTTP port on an unexpected port.
Proposed Release Note Entry
Default disabled publish HTTP port.
Double Check
develop
branch.