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
Hello,
Tested with linux - works fine, however with windows container had some issues, not investigated.
Thanx a lot for the solution, I will try to do something similar with static apps service
Regards,
Zygimantas