Nov 19, 2022 News Targeted NT nightscout xDrip+ diabetes cgm docker

How to set up NightScout Docker using CyberPanel Hosting panel

How to set up NightScout Docker using CyberPanel Hosting panel

I managed to figure out a way to use the docker, it was quite easy actually.
All I needed was the correct config values, and boom, the docker image within CyberPanel was almost like type and up.

1. Have a VPS.
2. go to Manage Images
3. Search for

nightscout/cgm-remote-monitor

 


4. Choose either "Latest" or "Latest_Dev" (I went with "Latest")
5. Click "Create container" top right.
6. Add your config files to this page.
7. You must at least give it 1024MB of memory. (Choose to start Nightscout on restart)

Choose an IP of your choice, most common ports are over 1000, or over 3000.
Any port will do (As long as you don't have any private ports conflicting with your port choice.)



7. Register at https://www.mongodb.com/cloud/atlas/register


8. Use the mongodb+srv:// address you get when setting up a cluster at the atlas. (See image at point 7 for reference where to put

mongodb+srv://

 

How to make a MongoDB server at Atlas:

1. Click "Create" top right.

 

2. Choose "Shared Cluster" at the top.
3. Choose Azure (And Ireland or any other country that you see allows you to do it for free)
4. Continue with the "ServerLess" option.
5. Press "Create Instance"


6. Click Connect.


7. Click on Copy button on the right side.

 

8. Go to your CyberPanel config page, and add this URL to Mongodb (See image point 7 over)

9. Nightscout Configs:


YARN_VERSION
INSECURE_USE_HTTP
MONGODB_URI
API_SECRET
DISPLAY_UNITS
BASE_URL
ENABLE
AUTH_DEFAULT_ROLES
THEME
MONGO_TREATMENTS_COLLECTION
BACKUP_NUM_KEEP
BACKUP_FREQUENCY

 

Values to the configs:
You need a base URL, but it does not have to be a valid domain unless you want to show the values using a domain instead of VPS IP in the browser.

 

14.15.3
1.22.5
true
mongodb+srv://
Your API_Secret from your phone
mmol
https://subdomain.domain.com
careportal basal dbsize rawbg iob maker bridge cob bwp cage iage sage boluscalc pushover treatmentnotify mmconnect loop pump profile food openaps bage alexa override cors
denied
colors
treatments
7
1d

10. Click Save.

11. Click "Start"

12. Go to

HTTP://IP:port
or
https://subdomain.domain.com (Requires more setup)

And you should be all set up.

load more