Answer the question
In order to leave comments, you need to log in
Need advice: is the Nginx - Docker - Nginx (proxy) bundle correct?
Hey!
DevOps friends, give me advice, please!
I want an outside opinion.
Essence
The project has a Dockerfile with multi-stage builds:
FROM node:13.10.1-alpine as builder
- in it the application is built in staticFROM nginx:1.14-alpine
- final image with application files and Nginx "on distribution"proxy_pass http://localhost:<номер порта>
Answer the question
In order to leave comments, you need to log in
There is nothing criminal in this. If that's what you need, then do it. If you see a way to simplify the system - simplify.
The main thing is not to forget to throw in the real ip and the scheme in the header.
By the way, k8s, for example, works like this. There 80,443 port listens to the so-called. ingres - usually the same nginx, whose config is set via a yml file. And now it accepts all requests and, depending on the settings, proxies them to backends, including internal nginx's.
And here you can download chrome yourself, read carefully, I need exactly mac OS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question