-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
34 lines (33 loc) · 1.02 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
services:
nightscout:
image: "nightscout/cgm-remote-monitor:15.0.2"
environment:
API_SECRET: "${API_SECRET:-123456789abc}"
MONGO_CONNECTION: 'mongodb://${MONGODB_USERNAME:-nightscout}:${MONGODB_PASSWORD:-secret}@database/nightscout?retryWrites=true&w=majority&authSource=admin'
MONGO_COLLECTION: 'entries'
INSECURE_USE_HTTP: "true"
SECURE_HSTS_HEADER: "false"
ENABLE: "basal bwp careportal iob cob rawbg treatmentnotify boluscalc profile food ar2"
SHOW_PLUGINS: "careportal"
TREATMENTS_AUTH: "off"
PORT: 1337
TIME_FORMAT: "24"
DISPLAY_UNITS: "mmol"
WAIT_HOSTS: "database:27017"
depends_on:
- database
expose:
- "1337"
ports:
- "5001:1337"
database:
image: mongo:latest
environment:
MONGO_INITDB_DATABASE: nightscout
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME:-nightscout}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD:-secret}
AUTH: 'true'
expose:
- 27017
- 27018
- 27019