W
W
work4840362019-09-03 16:12:13
Nginx
work484036, 2019-09-03 16:12:13

Subdomains on one VPS and all in dockers?

Guys, for some reason I can't solve the problem myself...
There is one VPS.
The task is to launch three containers with nodejs to make them available on the domains
dev.mysite.com
staging.mysite.com
prod.mysite.com
with forwarding real directories
Maybe someone has a working docker-compose?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-09-03
@q2digger

You need one more container - the front, on the git, for example, there is a very popular jwilder / nginx-proxy
It automatically makes virtual hosts according to the set environment variables. There are examples in the git.
Works great, well configured.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question