update to Dockerfile to make the build much smaller.

This commit is contained in:
2021-05-05 21:27:36 +01:00
parent 1bb272e07f
commit 443e43e3f0
4 changed files with 117 additions and 41 deletions

23
compose/nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
upstream cbwebreader_django {
server cbwebreader:8000;
}
server {
listen 80;
location / {
proxy_pass http://cbwebreader_django;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /static/;
}
location /media/ {
alias /media/;
}
}