These instructions assume the following:
- You have your MongoDB database up and running
- You are going to configure Azure via the Azure Portal
- Create a new App Service Plan resource
- Choose your Subscription
- Create a new Resource Group
- Give the App Service Plan a name
- Select Linux as the Operating System (Windows should also work)
- Choose a Region close to you
- For Pricing Tier select F1 the FREE tier
- Click Review + create > Create
- Wait for the App Service Plan to be deployed
- Create a new Web App resource
- Choose your Subscription
- Select the Resource Group you created in the previous step
- Give the instance a name (unique across the Azure platform) -
https://<your-webapp-name>.azurewebsites.net
- For Publish, select Docker Container
- For Operating System, select the OS you chose for the App Service Plan
- For Region, select the region you chose for the App Service Plan
- Select your App Service Plan from the list
- Click Next
- Select Single Container
- Select Docker Hub as the Image source
- Select Public as the Access Type
- For the Image and tag use the following: nightscout/cgm-remote-monitor:latest
- Optionally enable Application Insights (useful for troubleshooting)
- Click Review + create > Create
- Wait for the Web App to be deployed
- Once the Web App is deployed, go to Settings > Configuration
- Add the Nightscout variables that you need as Application Settings
- When you have added the variables you need, click on Save.
- Additionally add the variable WEBSITE_PORT and set it to 1337
- The service will restart at this point.
- You should now be able to access your site at
https://<your-webapp-name>.azurewebsites.net
Thanks for testing it out!
I don't think the F1 tier on the Windows Plan supports Docker containers. You would have to select one of the paid tiers if using Windows.
Static Web Apps won't run containers, so that's out.
The other options are Azure Container Apps, Azure Kubernetes Service and Azure Container Instances. But all of those will incur cost.
Azure Container Apps might be worth a look as there is a free grant which may be sufficient to run a NS site.