Initial commit

This commit is contained in:
2021-03-23 21:25:45 +01:00
commit 46bb3be3ca
23 changed files with 516 additions and 0 deletions

4
nginx/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM nginx:1.19.8
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d

20
nginx/nginx.conf Normal file
View File

@ -0,0 +1,20 @@
upstream app {
server web:8000;
}
server {
listen 80;
location / {
proxy_pass http://app;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /usr/src/app/staticfiles/;
}
}