Home > Backend Development > PHP Tutorial > Many domain name websites have been deployed on lnmp. I want to use docker for one of the domain names. Is there any good way?

Many domain name websites have been deployed on lnmp. I want to use docker for one of the domain names. Is there any good way?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-04 09:19:48
Original
1069 people have browsed it

Assume www.a.com is built with normal lnmp

Assume www.b.com is running in docker

How should I configure it? What I am thinking of is that the host’s nginx forwards traffic to docker

If you need to run two domain names in docker, you must open two containers. Can one container be used?

Reply content:

Assume www.a.com is built with normal lnmp

Assume www.b.com is running in docker

How should I configure it? What I am thinking of is that the host’s nginx forwards traffic to docker

If you need to run two domain names in docker, you must open two containers. Can one container be used?

You can reverse proxy to docker’s nginx http service through the host’s nginx http service

To run two domain names, you only need to configure two vhosts with nginx. There is no need to open two containers. It depends on the business needs

You can implement multiple services of nginx in one container by setting the container alias of the network

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template