You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm was trying to run a ddev project using ddev-varnish on another router_http_port/router_https_port than the default via the project's config.yaml and noticed that the varnish container hardcodes the 80/443 ports. After changing HTTPS_EXPOSE and HTTP_EXPOSE in docker-compose.varnish.yaml's environment to:
It would be reasonable for this to automatically derive the dynamic ports being used by DDEV, but I'm not sure how ambitious we want to be here. Since the HTTP_EXPOSE stuff can change and the router_http_port can change based on DDEV config, it would require something actively to happen with the varnish docker-compose.varnish.yaml here. Not sure how easy that would be to do. Contributions welcome.
rfay
changed the title
Shouldn't HTTP(S)_EXPOSE use ddev router ports?
Shouldn't HTTP(S)_EXPOSE use router_http_port and router_https_port?
Jun 30, 2023
I'm was trying to run a ddev project using ddev-varnish on another router_http_port/router_https_port than the default via the project's config.yaml and noticed that the varnish container hardcodes the 80/443 ports. After changing HTTPS_EXPOSE and HTTP_EXPOSE in docker-compose.varnish.yaml's environment to:
and restarting, varnish started working for this project.
The text was updated successfully, but these errors were encountered: