B
B
bernex2016-08-16 15:04:29
Vagrant
bernex, 2016-08-16 15:04:29

Docker: How to run multiple domains on the same server?

The project will only use php + nginx.
How to launch and add new projects to the server without interfering with those already running?
How can this be done architecturally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2016-08-16
@FireGM

And what's the problem? You have a general question that can be answered in the same general way.
You launch the nginx image, which, according to the config, will proxy to your running php images with projects.
UPD:
Take an nginx image , make a config (make a proxy on 8080)
Take a php image , forward ports instead of 80 to the one you need (8080:80)
Start nginx. Run php container. New project with PHP forward a new free port (8081:80), add new proxying to the nginx config, start a new project, restart nginx.
Or don't bring nginx into the image at all and reload the config without losing connections.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question