I wonder if it's related to the reverse proxy you mentioned in your previous post:
It looks like the nginx container is continuously restarting in the first case, but healthy in the second manual docker compose up
case. The ports look better in the second case, too. I can see the reverse proxy settings.
What do the nginx logs look like? Is there another nginx on the machine that starts up on reboot and prevents the central nginx from running?