**Hello there. **
I am trying to just use Docker compose without my whole code on the server to start up my whole backend and I need help with Nginx setting.
Tagged and Pushed my Images into Gitlab Registry and all. and i don’t understand how to set the Root into docker image. almost everything is self learned kinda hard to explain xd.
here is “small part of 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.
I need to set the root into Docker Image? i think?
since the files are on Image so I need to Direct it into it or something?
or is it whole different thing when it comes to docker images?
Just in case.
Docker Images are Started and working fine to checked logs and all.
Using just Docker-compose to start 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