iv-org / documentation

The official Invidious documentation
https://docs.invidious.io
Creative Commons Zero v1.0 Universal
599 stars 155 forks source link

Use deploy.replicas and variable in proxy_pass in improve-public-instance.md #469

Closed extremelyonline closed 11 months ago

extremelyonline commented 11 months ago

Scale can be replaced with deploy.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

unixfox commented 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.