Why do you have to use NGINX? Caddy does the proxying to the Lemmy containers for you. That docker-compose.yml file is my entire deployment, there is no hidden NGINX container or config file that needs to be added. Just remove your broken Lemmy deployment with docker compose down
and delete the containers, then docker compose up
my docker-compose.yml (after you edit the postgres variables) with config.hjson in the same folder.
Is renaming the instance domain without reinstalling Lemmy related to changing the WebFinger query? It’s the trick some instances use to have a different instance domain from their username domain, like @[email protected] while the instance is mastodon.domain.com.