docker first try

This commit is contained in:
vabene1111
2018-11-07 13:31:26 +01:00
parent be32b3f63e
commit 484f7c556e
7 changed files with 113 additions and 0 deletions

17
nginx/conf.d/Recipes.conf Normal file
View File

@@ -0,0 +1,17 @@
server {
listen 80;
server_name localhost;
# serve static files
location /static/ {
alias /static/;
}
# serve media files
location /media/ {
alias /media/;
}
# pass requests for dynamic content to gunicorn
location / {
proxy_set_header Host $host;
proxy_pass http://web_recipes:8080;
}
}