Ghost CMS on Ubuntu runs with docker-compose and has nginx image installed. I wanted to install one more project and this project also needs nginx. is it a problem to have nginx in two separate dockers?
Given that this question is a week old, you’ve probably found your answer.
It’s not directly a problem to run Nginx in two containers depending what you are doing with them, but only process can listen on a port at a time, so you can’t have two different Nginx containers listening on port 443 and 80.
Personally, I would exclude Nginx from both projects compose files and run it outside of Docker or in a standalone container.