Well if you are using docker-compose you could probably get rid of the nginx container and only deploy the other four: lemmy, lemmy-ui, pictrs, postgres. You would then use the nginx.conf stuff you have in place for the docker container of nginx to proxy to lemmy-ui and lemmy on ports 1234 and 8536. Or if you plan to keep using the docker container for nginx then you can change the listening port in the nginx.conf of the container:
listen 80;
to something different like
listen 1080;
Also in the docker-compose.yml you would update the nginx ports to 1080:1080
.
Hope this answers your question.
I used docker-compose version and had to work around a couple of bugs like needing to redundantly install Nginx and Let’s Encrypt for it to work properly with SSL and also having to add the lemmy container to the internet facing network due to the DNS not working on it and subsequently loosing federation capability. Overall a bit of a struggle, but this is common with FOSS.
Well thanks to the soon to be dead /r/selfhosted on reddit I started selfhosting few years ago and now approximately 90% of my stuff is selfhosted:
as daily drivers and several others that I use from time to time.