Reverse proxy communication through a Docker network #4276
-
I was wondering it would be possible in the future to use a Docker network for communication between the reverse proxy and the Apache container when the reverse proxy is hosted in a Docker container. This would allow to not expose any port on the host as the communication between the reverse proxy (running in Docker) and the Apache container (running in Docker too) would be done using a standard bridge Docker network. I am not an expert with the Docker API, but I guess it should be technically possible to specify an external Docker network when the Apache container is created (such a network could be defined using an extra I think it would a nice feature for security purposes. When the reverse proxy is being run in Docker, we currently have two options according to reverse proxy documentation:
I successfully used the first solution, but it requires to have |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, this is already possible by adding the reverse proxy container to the |
Beta Was this translation helpful? Give feedback.
Hi, this is already possible by adding the reverse proxy container to the
nextcloud-aio
network, setting--env APACHE_PORT=11000
targetinghttp://nextcloud-aio-apache:$APACHE_PORT
and skipping the domain validation with--env SKIP_DOMAIN_VALIDATION=true
. It is not documented because obviously the domain validation will not work in that case.