A
A
Alexander Bondarenko2021-12-06 12:41:44
Nginx
Alexander Bondarenko, 2021-12-06 12:41:44

How can I run a site with index.html on VPS, on docker + nginx?

Hello everyone, there is a site to which the API backing is attached, the back is installed on the server, you need to place the front there too, the site was on react, it was compiled, how can I configure it specifically for docker + nginx? It is not possible to run react through docker, an error occurs which is not on the local, and it is rather problematic to solve it

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rodion, 2021-12-06
@bond_1013

In short - to make a Docker image assembly, during which React is first assembled, placed in a folder (inside the image) and Nginx is launched to return static from it.
Here's an example.

V
varzin, 2015-05-29
@WQP

Alternatively, you can animate CSS properties via transition
jsfiddle.net/varzin/9woqt7pn/1

N
Nikolai Shabalin, 2015-05-29
@nikolayshabalin

What the hell "bears"? I was looking for a bear there, you deceived me, I will not help you.

D
Dmitry Shinkar, 2015-05-29
@DeadCowsDontMoo

Of course, I could be wrong, but css alone will not do here ... =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question