Reputation: 111
I want to create/host multiple applications on 1 server. This will happen through docker-compose. This docker-compose has 3 instances: web, db and nginx.
So each application will start from a docker-compose up
command.
The question I still have is: do I need the nxinx inside the docker-compose config, or should I create 1 nginx config?
Why this question? I want to run a single command to run 1 application, instead of running a command and alter the nginx config over and over again.
Can someone help me please? Thanks in advance!
Upvotes: 0
Views: 302
Reputation: 669
What you can do is expose the service (web) for each project in the host on a different port and have a central nginx docker container - or an nginx installation that would define the reverse proxying for each application.
Upvotes: 1