I have a docker-compose file with varnish + nginx. When I add a proxy (nginx) between varnish and the nginx container the stack is broken.
The reason for adding a proxy:
This service serves as a proxy between Varnish and nginx. This allows Varnish to be hosted on a hosting environment separate from the application (nginx, php, ...), allowing for independent deployments and auto-scaling for both.
/app # ./haproxy_reload.sh
[WARNING] 106/092245 (237) : Setting tune.ssl.default-dh-param to 1024 by default, if your workload permits it you should set it to at least 2048. Please set a value >= 1024 to make this warning disappear.
[ALERT] 106/092245 (237) : parsing [/app/haproxy.cfg:45] : 'server wp-back-office-proxy-1:8080' : could not resolve address 'wp-back-office-proxy-1'.
[ALERT] 106/092245 (237) : Failed to initialize server(s) addr.
I have a docker-compose file with varnish + nginx. When I add a proxy (nginx) between varnish and the nginx container the stack is broken.
The reason for adding a proxy:
This service serves as a proxy between Varnish and nginx. This allows Varnish to be hosted on a hosting environment separate from the application (nginx, php, ...), allowing for independent deployments and auto-scaling for both.
haproxy.cfg:
Reloading:
I work on a macbook pro with the M2 chip.