From 701a431ac19897286cff39dfd1961b97db92c37d Mon Sep 17 00:00:00 2001 From: James Wilson Date: Mon, 16 Aug 2021 14:08:28 +0100 Subject: [PATCH] Remove parity specific bit in nginx file (not needed anyway), name default network, tweak a dockerfile comment --- docker-compose.yml | 5 +++++ frontend/Dockerfile | 4 ++-- frontend/nginx/nginx.conf | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3ce81c9..4b5b629 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,10 @@ version: "3" +networks: + default: + # Give the default network created below a sensible name: + name: substrate-telemetry + services: telemetry-frontend: build: diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 52d0a00..d049181 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -15,8 +15,8 @@ FROM docker.io/nginx:stable-alpine LABEL maintainer="Chevdor " LABEL description="Polkadot Telemetry frontend" -# When we run the built docker image, the default command uses this -# env var to tell the UI where to look to get feed info. +# Each time this container is ran, the value that's provided for this env var +# determines where the frontend will try to request feed information from: ENV SUBSTRATE_TELEMETRY_URL= WORKDIR /usr/share/nginx/html diff --git a/frontend/nginx/nginx.conf b/frontend/nginx/nginx.conf index e203744..fedd2e2 100644 --- a/frontend/nginx/nginx.conf +++ b/frontend/nginx/nginx.conf @@ -29,6 +29,5 @@ http { index index.html; listen 8000; listen [::]:8000; - server_name telemetry.polkadot.io localhost; } }