-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightscout-no_consul.nomad
82 lines (71 loc) · 2.19 KB
/
nightscout-no_consul.nomad
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
job "nightscout" {
datacenters = ["shiftfocus-central"]
type = "service"
update {
max_parallel = 1
min_healthy_time = "20s"
healthy_deadline = "5m"
auto_revert = false
}
group "cgm" {
count = 1
network {
port "nightscout" {
static = 3000
to = 1337
}
}
restart {
attempts = 10
interval = "5m"
delay = "25s"
mode = "delay"
}
ephemeral_disk {
size = 300
}
task "nightscout" {
driver = "docker"
config {
image = "dhermanns/rpi-nightscout:latest"
ports = ["nightscout"]
}
env {
TZ = "America/Halifax"
# This expects a mongo service already available
# Change replace me to your instance's domain (but do not make the port available outside the instance)
# In other words, do not create a security group (in AWS) or add an allow rule for your instance firewall
MONGO_CONNECTION = "mongodb://replace_me:27017/nightscout"
# Your admin token
API_SECRET = "admin_token"
# BG defaults
BG_HIGH = "220"
BG_LOW = "60"
BG_TARGET_TOP = "180"
BG_TARGET_BOTTOM = "81"
# I do my TLS termination elsewhere. Set this to false (default) to enable TLS
INSECURE_USE_HTTP = true
# This option denies access without a token
AUTH_DEFAULT_ROLES = "denied"
# Basically all plugins enabled
ENABLE = "careportal basal dbsize rawbg iob maker bridge cob bwp cage iage sage boluscalc pushover treatmentnotify mmconnect loop pump profile food openaps bage alexa override"
# Dexcom bridge settings
BRIDGE_USER_NAME = "username" # Not your email address
BRIDGE_PASSWORD = "password" # Password
BRIDGE_SERVER = "EU" # Change this to "US" if you're in the USA
}
service {
name = "nightscout"
tags = ["cgm", "monitor", "nightscout" ]
provider = "nomad"
port = "nightscout"
# check {
# name = "alive"
# type = "tcp"
# interval = "10s"
# timeout = "2s"
# }
}
}
}
}