The local deployment of the Production image through docker-compose was failing due to issues in the Django configurations, influenced by Joanie. The bug stemmed from a dependency on a development-specific package (drf-spectacular-sidecar) while attempting to run the application in production mode. Changes Made: - Introduced new Django settings for local demo environments. - Uncommented the nginx configuration to address the production image deployment issues.
35 lines
564 B
Plaintext
35 lines
564 B
Plaintext
server {
|
|
|
|
listen 8082;
|
|
server_name localhost;
|
|
charset utf-8;
|
|
|
|
location /media {
|
|
alias /data/media;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://app:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 8088;
|
|
server_name localhost;
|
|
|
|
root /home/desk;
|
|
|
|
location / {
|
|
try_files $uri index.html $uri/ =404;
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
location = /404.html {
|
|
internal;
|
|
}
|
|
}
|
|
|