I’m playing around with my own instance of Lemmy but I keep getting a “websocket connection failed” error in my console. I’m having a really hard time understanding how to set up nginx for websockets - I’m more used to Apache and not familiar with WS at all. Is there documentation hiding somewhere that will help me set up my proxy forwarding properly?


I might be. See my response here: https://lemmy.world/comment/101425
I would recommend you ditch the second nginx layer. It’s a waste of resources and it can cause a multitude of issues if the configuration isn’t done correctly.
docker-compose.ymlfile and copy Lemmy’s nginx config into your system’s nginx config (e.g./etc/nginx/).lemmyexternalproxynetwork, deleteinternal: trueon thelemmyinternalnetwork (required to enable port forwarding) and add port forwards to thelemmyandlemmy-uidocker services. Here’s what that would look like: https://www.diffchecker.com/vjfEFuz6/docker-compose.ymlfile for theproxyservice to bind to whatever your external facing IP is.