I am afraid this is not how docker network works; “mypydio” and “mypydio.com” are not resolvable within the container as expected.
I am a little surprised this is not supposed to work, as it is very common microservice like scenario.
Both “nextcloud” and “seafile” do accept such layout.
How about enriching documentation providing a compelling example?
Maybe I was not clear but what I meant was that the container must be able for instance to curl http://mypydio.com.
Here’s why:
Trying to reach your instance of Cells from inside the container itself to ensure there is no network issue: Cells needs to access itself using its PUBLIC URL to generate the JWT token.
If I am understanding your lines correctly, cells container needs to access itself via internet (dns -> proxy container -> cells container) in order to have the token issued. Is that correct?
Not sure this would work without a proper dns service in the game (something i do not have for the time being in my test environment) nor in localhost.
i have given a try, but this results into a:
pydio.rest.frontend Rest Error 401 {“error”: “Post http://mypydio.com/auth/dex/token: dial tcp 127.0.0.1:80: connect: connection refused”}
from inside the cells container:
/pydio # wget -S 127.0.0.1
Connecting to 127.0.0.1 (127.0.0.1:80)
wget: can’t connect to remote host (127.0.0.1): Connection refused
/pydio # wget -S 127.0.0.1:8080
Connecting to 127.0.0.1:8080 (127.0.0.1:8080)
HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: /login
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Date: Thu, 18 Jul 2019 20:55:40 GMT
Server:
X-Xss-Protection: 1; mode=block
Connection: close
Transfer-Encoding: chunked
saving to ‘index.html’
index.html 100% |**********************************************************************| 194k 0:00:00 ETA
‘index.html’ saved
So the reverse proxy seems to be correctly set.The problem is that (from the previous comment) pydio is trying on port 80 while it should try on 8080 instead. As in /etc/hosts the port cannot be set, ny idea on how to overcome this?