-
Notifications
You must be signed in to change notification settings - Fork 49
/
docker-compose.yml
35 lines (35 loc) · 947 Bytes
/
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
version: '3.4'
services:
nightscout:
image: dhermanns/rpi-nightscout:latest
environment:
TZ: Europe/Berlin
MONGO_CONNECTION: mongodb://mongo:27017/nightscout
API_SECRET: mypassword123
BG_HIGH: 220
BG_LOW: 60
BG_TARGET_TOP: 180
BG_TARGET_BOTTOM: 80
INSECURE_USE_HTTP: "true"
# SSL_KEY: /var/opt/ssl/server.key
# SSL_CERT: /var/opt/ssl/serverchain.crt
# SSL_CA: /var/opt/ssl/cachain.crt
AUTH_DEFAULT_ROLES: readable devicestatus-upload
ENABLE: alexa rawbg
ports:
- "1337:1337"
depends_on:
- mongo
volumes:
- /home/pi/docker/rpi-nightscout:/var/opt/ssl/:ro
restart: always
mongo:
image: mongo:4.4.9
volumes:
- ./data:/data/db
ports:
- "27017:27017"
- "27018:27018"
- "27019:27019"
- "28017:28017"
restart: always