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; } }