For purposes beyond this thread, I have a need to run a Docker on port 80 on an additional IP Address on my OMV server. I can easily add an additional IP Address:
However, everytime I attempt to run my Docker using this IP Address and Port, I get the following error:
root@NAS:/# docker run -it --name magneto --link magnetodb:db -p 192.168.2.7:80:80 byteme/website
Error response from daemon: Cannot start container 28eb288b4b1f59053312b6ff53900266cf435642b0fcc92850c0eb8c76002e6b: failed to create endpoint magneto on network bridge: Error starting userland proxy: listen tcp 192.168.2.7:80: bind: address already in use
Basically, Docker is telling me that something is using port 80 on my secondary IP Address. Some careful snooping revealed that Nginx is setup with two suspect lines:
listen [::]:80 default_server ipv6only=off;
...
listen [::]:443 default_server ipv6only=off ssl deferred;
Yes, I can go in and play with the openmediavault-webgui file, but I'd prefer to treat this box like an appliance, and rely on it's built in logic and customization before going around and bastardizing my own server.
So the questions are:
1) Whats the best way to add a new IP Address to the OMV server without hacking underlying configurations?
2) Whats the best way to limit the WebUI to the primary IP Address (again) without hacking underlying configurations?