Hello there
I am trying to use Docker Compose without my whole code on the server to start up my whole backend and need help with the Nginx setting.
server {
listen 8003;
access_log /var/log/nginx/reverse-api.access.log main;
#add_header Access-Control-Allow-Origin *;
# serve static files
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
#root /mnt/nfs_clientshare/static;
---> root /home/user/Project/core_ms/static; <---
expires 30d;
}
# pass requests for dynamic content to rails/turbogears/zope, et al
location / {
#add_header 'Access-Control-Allow-Origin' '*' always;
#proxy_set_header X-Forwarded-Proto $scheme;
#proxy_set_header X-Forwarded-Ssl $https;
proxy_pass http://127.0.0.1:8023;
}
}`
Just in case I haven’t been clear.
Do I need to set the root into Docker Image? I think.
since the files are on Image. Do I need to Direct it into it or something?
or is it a whole different thing when it comes to docker images?
Just in case.
Docker Images are Started and working fine.
Using just Docker-compose to start the backend without any code on the server.
and I need help with setting up Nginx.
Sod-Od Kh. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1