-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
121 lines (106 loc) · 2.92 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
container_name: caddy
restart: always
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./caddy-data:/data
labels:
- com.centurylinklabs.watchtower.enable=true
logging:
options:
max-size: "4m"
max-file: "10"
app:
image: nightscout/cgm-remote-monitor:latest
restart: always
environment:
- MONGO_CONNECTION=mongodb://db:27017/Nightscout
- API_SECRET=YOUR_SECRET
- BASE_URL=https://YOUR-DOMAIN.TLD
- INSECURE_USE_HTTP=true
- SECURE_HSTS_HEADER=false
- AUTH_DEFAULT_ROLES=denied
- PUMP_FIELDS=reservoir battery status
- DEVICESTATUS_ADVANCED=true
- ENABLE=careportal delta direction upbat timeago profile food iob cob cage sage iage bage cors
- BG_HIGH=150
- BG_TARGET_TOP=150
- BG_TARGET_BOTTOM=70
- BG_LOW=60
- CUSTOM_TITLE=Nightscout
- DISPLAY_UNITS=mg/dl
- TIME_FORMAT=24
- THEME=colorblindfriendly
- LANGUAGE=en
- BASAL_RENDER=default
- SHOW_PLUGINS=delta direction upbat timeago devicestatus profile food iob cob cage sage iage bage basal pump cors openaps careportal
- EDIT_MODE=on
- SCALE_Y=linear
- OPENAPS_COLOR_PREDICTION_LINES=true
- SHOW_FORECAST=openaps
- DBSIZE_MAX=5120
- ALARM_URGENT_HIGH=off
- ALARM_HIGH=off
- ALARM_URGENT_LOW=off
- ALARM_LOW=off
- ALARM_TIMEAGO_WARN=off
- ALARM_TIMEAGO_URGENT=off
- CAGE_INFO=36
- CAGE_WARN=48
- CAGE_URGENT=72
- CAGE_DISPLAY=days
- IAGE_INFO=36
- IAGE_WARN=72
- IAGE_URGENT=96
- BAGE_INFO=432
- BAGE_WARN=600
- BAGE_URGENT=720
- SAGE_INFO=192
- SAGE_WARN=216
- SAGE_URGENT=236
depends_on:
db:
condition: service_started
networks:
- internal
- caddy
labels:
- caddy="YOUR-DOMAIN.TLD"
- caddy.reverse_proxy="{{upstreams 1337}}"
- caddy.header.Permissions-Policy="interest-cohort=()"
- caddy.header.Strict-Transport-Security="max-age=31536000"
- caddy.header.X-Content-Type-Options="nosniff"
- caddy.header.X-Frame-Options="SAMEORIGIN"
- caddy.header.Referrer-Policy="no-referrer-when-downgrade"
db:
image: mongo:5.0
restart: always
command: --wiredTigerCacheSizeGB 0.5
volumes:
- ./mongo-data:/data/db
networks:
- internal
labels:
com.centurylinklabs.watchtower.enable: true
watchtower:
image: containrrr/watchtower
container_name: watchtower
network_mode: none
restart: always
environment:
- WATCHTOWER_POLL_INTERVAL=7200
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
internal:
caddy:
external: true