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