# Docker Production

* adds further settings to create a production-ready docker configuration
This commit is contained in:
2022-01-10 15:27:19 +01:00
parent 16a5f0c5d4
commit 6a6b7f1f9f
6 changed files with 48 additions and 5 deletions

4
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM nginx:alpine
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 konova {
server konova:8000;
}
server {
listen 80;
location / {
proxy_pass http://konova;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /konova/static/;
}
}