-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (35 loc) · 1.52 KB
/
docker-compose.yml
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
41
42
services:
mongo:
image: mongo:4.4.14
volumes:
- ${NS_MONGO_DATA_DIR:-./mongo-data}:/data/db:cached
nightscout:
image: nightscout/cgm-remote-monitor:latest
container_name: nightscout
pull_policy: always
restart: always
ports:
- 1337:1337
depends_on:
- mongo
environment:
### Variables for the container
NODE_ENV: production
TZ: Etc/UTC
# The `nightscout` service can use HTTP, because we only make it available in the local network
INSECURE_USE_HTTP: 'true'
# For all other settings, please refer to the Environment section of the README
### Required variables
MONGO_CONNECTION: mongodb://mongo:27017/nightscout
# API_SECRET - A secret passphrase that must be at least 12 characters long.
API_SECRET: change_me
### Features
# ENABLE - Used to enable optional features, expects a space delimited list, such as: careportal rawbg iob
# See https://github.com/nightscout/cgm-remote-monitor#plugins for details
ENABLE: careportal rawbg iob
# AUTH_DEFAULT_ROLES (readable) - possible values readable, denied, or any valid role name.
# When readable, anyone can view Nightscout without a token. Setting it to denied will require
# a token from every visit, using status-only will enable api-secret based login.
AUTH_DEFAULT_ROLES: readable
# For all other settings, please refer to the Environment section of the README
# https://github.com/nightscout/cgm-remote-monitor#environment