Update example app to include a loadbalancer.

This commit is contained in:
Tom Wilkie
2015-09-04 13:07:29 +00:00
parent 1c21feac07
commit 6e7a22ecae
7 changed files with 52 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
FROM ubuntu
MAINTAINER Weaveworks Inc <help@weave.works>
RUN apt-get update && \
apt-get install -y nginx && \
rm -rf /var/lib/apt/lists/*
RUN rm /etc/nginx/sites-available/default && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
COPY default.conf /etc/nginx/conf.d/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -0,0 +1,8 @@
server {
listen 80;
resolver dns.weave.local:53;
location / {
proxy_pass http://app.weave.local$request_uri;
}
}