mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-06 03:31:00 +00:00
Update example app to include a loadbalancer.
This commit is contained in:
11
experimental/example/frontend/Dockerfile
Normal file
11
experimental/example/frontend/Dockerfile
Normal 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;"]
|
||||
8
experimental/example/frontend/default.conf
Normal file
8
experimental/example/frontend/default.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
resolver dns.weave.local:53;
|
||||
|
||||
location / {
|
||||
proxy_pass http://app.weave.local$request_uri;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user