[Health Care - Nightscout] col-nightscount-docker provide a way to run Nightscout on a Docker and Docker Compose environment

col-nightscount-docker

Nightscout (also known as “CGM in the Cloud”) is an open-source cloud application used by people with diabetes and parents of kids with diabetes to visualize, store and share the data from their Continuous Glucose Monitoring sensors in real-time. Once setup, Nightscout acts as a central repository of blood glucose and insulin dosing/treatment data for a single person, allowing you to view the CGM graph and treatment data anywhere using just a web browser connected to the internet.

col-nightscount-docker provide a way to run Nightscout on a Docker and Docker Compose environment.

Prerequisites

  • Docker - https://www.docker.com/

    Developing apps today requires so much more than writing code. Multiple languages, frameworks, architectures, and discontinuous interfaces between tools for each lifecycle stage creates enormous complexity.

    Docker simplifies and accelerates your workflow, while giving developers the freedom to innovate with their choice of tools, application stacks, and deployment environments for each project.

    To learn more about all the features of Docker, see Docker - https://www.docker.com/.

  • Docker Compose - https://docs.docker.com/compose/

    Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

    To learn more about all the features of Docker Compose, see Docker Compose - https://docs.docker.com/compose/.

Configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3.9"

services:

mongodb:
environment:
- MONGODB_ROOT_PASSWORD=password
- MONGODB_USERNAME=nightscout
- MONGODB_PASSWORD=password
- MONGODB_DATABASE=nightscout
image: docker.io/bitnami/mongodb:4.4
ports:
- "27017:27017"
volumes:
- './runtime/bitnami/mongodb:/bitnami/mongodb'

mongo-express:
depends_on:
- mongodb
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
- ME_CONFIG_MONGODB_URL=mongodb://root:[email protected]:27017/
image: mongo-express
ports:
- 8081:8081
# restart: always

# docker-compose run --service-ports app /bin/bash
app:
depends_on:
- mongodb
environment:
- API_SECRET=API_SECRETAPI_SECRET
- MONGODB_URI=mongodb://nightscout:[email protected]:27017/nightscout
- HOSTNAME=0.0.0.0
- INSECURE_USE_HTTP=true
image: nightscout/cgm-remote-monitor
ports:
- "1337:1337"

Run and Visit

1
$ docker-compose up

You can visit http://localhost:1337 to access your Nightscout.

References

[1] What is Nightscout? - Nightscout - https://nightscout.github.io/

[2] nightscout/cgm-remote-monitor: nightscout web monitor - https://github.com/nightscout/cgm-remote-monitor

[3] The Nightscout Project – We Are Not Waiting - http://www.nightscout.info/

[4] ns.10be.de – Nightscout-Server und Nightscout-Instanzen kostenlos und einfach erstellen - https://ns.10be.de/de/index.html

[5] https://t1pal.com - https://t1pal.com/

[6] nightscout/cgm-remote-monitor - Docker Image | Docker Hub - https://hub.docker.com/r/nightscout/cgm-remote-monitor

[7] bitnami/mongodb - Docker Image | Docker Hub - https://hub.docker.com/r/bitnami/mongodb

[8] Mongo-express - Official Image | Docker Hub - https://hub.docker.com/_/mongo-express

[9] Docker - https://www.docker.com/

[10] Docker Compose - https://docs.docker.com/compose/