J
J
jamster2020-01-30 10:56:24
linux
jamster, 2020-01-30 10:56:24

How to put two domains on docker-compose on nginx?

I immediately apologize for the guys, but there are no configs, but the question is madly worried. There is a raised docker-compose config with wordpress on nginx on board. With 80 port. It works perfectly, but there is a second domain that needs to be carefully attached to this, not a static second domain... In general, the question is how to raise two domains using docker-compose with nginx on board.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RidgeA, 2020-01-30
@jamster

why not configure nginx to listen on 2 domains?

D
Dmitry, 2020-01-30
@q2digger

we change the usual nginx to the "unusual" jwilder/nginx-proxy , after which we destroy the virtual domains with environment variables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question