upstream web {
	ip_hash;
	server web:8000;
}

# portal
server {	
	listen 80;
	server_name localhost;
	charset     utf-8;

	location /static {
            alias /static;
	}

	location /media {
            alias /media;
	}

	location / {
            proxy_set_header Host $host;
	    proxy_pass http://web/;
	}
}