I am trying to implement Traefik as the reverse-proxy on my OMV server. All of the tutorials I have read assume you have a desktop environment on the Docker server and that port 80 is available. Neither is the case with OMV. I also cannot connect using the host header names (regardless of port used) from any machine. All of my connectivity is via mapped ports of the host IP address. I have three more NICs in my OMV server (Dell R710) but activating them is a fiasco. Guidance on the proper way to do this is appreciated. Docker-compose scripts would be a plus as I can use them as stacks in Portainer.
Traefik Help
-
- OMV 5.x
- etrigan63
-
-
I have read assume you have a desktop environment on the Docker server
I don't see why you would need a desktop environment for anything.
that port 80 is available. Neither is the case with OMV
You can change the port that the OMV web interface listens on in the General Settings tab. Then the port will be free.
-
I am switching back to OMV 4 today as MergerFS is buggered on OMV 5. I will move the web GUI to a new port.
Regarding having a DE, traefik uses host headers to route requests to the appropriate container. For example, if I expose a Heimdall container on docker.local it should present as heimdall.docker.local and I imagine it would on the docker host. OMV users can't test that way. Docker supposedly has a dns function for this purpose but I have yet to experience it.
Sent from my ONEPLUS A6013 using Tapatalk
-
-
I am switching back to OMV 4 today as MergerFS is buggered on OMV 5
In what way? I use it and it works fine. That said, OMV 5 is still beta.
Regarding having a DE, traefik uses host headers to route requests to the appropriate container. For example, if I expose a Heimdall container on docker.local it should present as heimdall.docker.local and I imagine it would on the docker host. OMV users can't test that way.
I'm confused. What does the desktop environment have to do with any of that? And why can't OMV users test that way? As long as docker.local resolves to the docker machine, the proxy reads the URL and directs to the correct container. This isn't a DNS function.
-
Regarding OMV 5 and MergerFS, see this post: Error creating shared folder on mergerfs drives
Regarding Traefik, the entire point is that is doesn't resolve. Some key element is missing that everyone assumes works and such is not the case. My server is mechagon.local. I can ping it from my workstation (Linux) and it resolves to the host IP. If I type container.mechagon.local, 404. Everything I read says this should happen by itself and it does not. Also, I am not clear on how Traefik is supposed to interact with the other containers. Do they need to publish ports on the bridge? Traefik is supposed to have a public facing network but it is not working as expected. I need a TDL level set of instructions to make it work. Oh, and for the record, I can only get Traefik to deploy marginally correctly using Portainer stacks (docker-compose). The GUI way results in a borked container.
-
etrigan63 wrote: Docker supposedly has a dns function for this purpose but I have yet to experience it.
[/quote]To work you need a new network for your docker ( need to docker network create) and add it to your dockers like --network nameofmyprevioslycreatednetworkdefault bridge network do not resolve DNS names like nameofthedocker.
more info:
https://docs.docker.com/v17.09…he-default-bridge-network
-
-
etrigan63 wrote: Docker supposedly has a dns function for this purpose but I have yet to experience it.
To work you need a new network for your docker ( need to docker network create) and add it to your dockers like --network nameofmyprevioslycreatednetwork
default bridge network do not resolve DNS names like nameofthedocker.
more info:
https://docs.docker.com/v17.09…he-default-bridge-network
https://docs.docker.com/v17.09…rking/work-with-networks/[/quote]Yeah, did that. No change. Can only access via IP address.
Sent from my ONEPLUS A6013 using Tapatalk
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!