B
B
Bogdan2019-03-19 14:08:51
Nginx
Bogdan, 2019-03-19 14:08:51

How to properly proxy a file in Docker + Nginx + Node?

Hello. Please tell me how to properly proxy the file, there are 2 docker containers with Node.js and Nginx, which will proxy the node. There is a file that will occasionally change, and it will be uploaded to the server through Node.js in which this folder will be like volumes. I would like to distribute this file on Nginx how to do it correctly thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mysterion, 2019-03-19
@Mysterion

With the --volume parameter, connect the directory to the container and distribute static from this directory to the container in nginx.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question