Repository with the Dashboard for the Weather Station Project
211
Repository with the Weather Station Dashboard solution.
These WebApp + APIs allow you to watch and search measurements taken by the device you built and configured following the Sensors Reader Project

The WebApp and the APIs are designed to be run with https support against the port 1443. To achieve this, it is necessary to create a certificate and it must be hosted in a place accessible by the docker container. Here, you have a tutorial to create a .pfx file protected by password.
A docker-compose example is provided with the solution code.
version: '3.5'
services:
authentication-service:
container_name: authentication-service
image: weatherstationproject/authentication-service
ports:
- "3443:1443"
environment:
- AUTHENTICATION_SECRET=123456
- AUDIENCE_SECRET=MySecret
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
gateway-service:
depends_on:
- authentication-service
- ambient-temperature-service
- air-parameter-service
- wind-measurements-service
- rainfall-service
- ground-temperature-service
container_name: gateway-service
image: weatherstationproject/gateway-service
ports:
- "2443:1443"
environment:
- AUDIENCE_SECRET=MySecret
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
ambient-temperature-service:
container_name: ambient-temperature-service
image: weatherstationproject/ambient-temperature-service
environment:
- AUDIENCE_SECRET=MySecret
- SERVER=127.0.0.1
- DATABASE=database-name
- USER=value
- PASSWORD=value
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
air-parameter-service:
container_name: air-parameter-service
image: weatherstationproject/air-parameter-service
environment:
- AUDIENCE_SECRET=MySecret
- SERVER=127.0.0.1
- DATABASE=database-name
- USER=value
- PASSWORD=value
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
wind-measurements-service:
container_name: wind-measurements-service
image: weatherstationproject/wind-measurements-service
environment:
- AUDIENCE_SECRET=MySecret
- SERVER=127.0.0.1
- DATABASE=database-name
- USER=value
- PASSWORD=value
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
rainfall-service:
container_name: rainfall-service
image: weatherstationproject/rainfall-service
environment:
- AUDIENCE_SECRET=MySecret
- SERVER=127.0.0.1
- DATABASE=database-name
- USER=value
- PASSWORD=value
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
ground-temperature-service:
container_name: ground-temperature-service
image: weatherstationproject/ground-temperature-service
environment:
- AUDIENCE_SECRET=MySecret
- SERVER=127.0.0.1
- DATABASE=database-name
- USER=value
- PASSWORD=value
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
dashboard:
depends_on:
- gateway-service
container_name: dashboard
image: weatherstationproject/dashboard
ports:
- "1443:1443"
environment:
- AUTHENTICATION_SECRET=123456
- ACCUWEATHER_LOCATION_NAME=Moralzarzal
- WEATHER_API_HOST=https://gateway-service:1443
- ACCUWEATHER_API_KEY=agzy4UX4RlokbgSksCKR4ZVbcFAA6bvi
- AUTHENTICATION_SERVICE_HOST=https://authentication-service:1443
- ASPNETCORE_Kestrel__Certificates__Default__Password=123456
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /path_to_the_pfx_folder:/https:ro
Use this code as you wish! Totally free to be copied/pasted.
If you liked the repository, you found it useful and you are willing to contribute, don't hesitate! I will be very grateful! :-)
Content type
Image
Digest
sha256:8f8312b56…
Size
68.2 MB
Last updated
almost 2 years ago
docker pull weatherstationproject/dashboard