First commit of the V2.
New base, new info.
This commit is contained in:
9
nginx/Dockerfile
Normal file
9
nginx/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM nginx:latest
|
||||
|
||||
ADD nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
RUN mkdir /var/www/static
|
||||
|
||||
WORKDIR /var/www/static
|
||||
ADD /static /var/www/static
|
||||
RUN chown -R nginx:nginx /var/www/static
|
28
nginx/nginx.conf
Normal file
28
nginx/nginx.conf
Normal file
@ -0,0 +1,28 @@
|
||||
user nginx;
|
||||
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
client_max_body_size 100M;
|
||||
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
charset utf-8;
|
||||
|
||||
location /static/ {
|
||||
alias /var/www/static;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web:8000;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user