Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @Drunner4,
After digging around, I found the following article :
https://www.docker.com/blog/how-to-use-the-official-nginx-docker-image/
It describes what exactly you are trying to do. As far as I can see, the Nginx configuration file should look something like :
server {
listen 80;
server_name frontend;
location / {
# This would be the directory where your app's static files are stored at
root /usr/share/nginx/html;
try_files $uri /index.html;
}
location /services/m {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://backend:8080/services/m;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
}
}
Now, in this case it’s using a frontend and backend for different files. You can remove the backendstuff and make it with localhost.
Anyway, the thing that you are missing in your initial configuration file is the location of the files it should use. That’s it.
Regards, KFSys