Closed extremelyonline closed 11 months ago
I didn't know deploy.replicas worked outside of docker swarm, the documentation explains that it only works in swarm, but I just tested it also works out of swarm which is great: https://docs.docker.com/compose/compose-file/compose-file-v3/#deploy
About the DNS caching that is a very good idea, I wasn't aware of NGINX caching the results for the entire lifetime of it.
Scale
can be replaced withdeploy.replicas
within the compose file.https://github.com/docker/compose/issues/5586#issuecomment-972130556
Using a variable in proxy_pass forces re-resolution of the DNS names. (In my tests, this helps solving some network quirks)
https://forum.nginx.org/read.php?2,215830,215832#msg-215832