here's what I have learned. With the Alfresco docker-compose.yml, you must use 'docker-compose stop'. You can't stop individual containers. I suspect this is common place.

However, you can also not use 'docker-compose restart' after stopping. This will leave nginx not knowing where to send traffic (504...probably something in the docker networking stack, but who cares, right?)

docker-compose up and docker-compose stop.

https://sayingimages.com/wp-content/uploads/the-way-this-is-meme.jpg