chore: update submodules
This commit is contained in:
parent
8032057255
commit
e9ad913201
|
@ -1 +1 @@
|
|||
Subproject commit 8ec05c08ff65fe6884198d04cd97fde0b4cdcf84
|
||||
Subproject commit c1ce3ccbdbce15571f26aa7f3b70aba48dd36759
|
|
@ -8,3 +8,7 @@ db.mongo.local=false
|
|||
db.mongo.uri=mongodb://localhost:27017/unifi
|
||||
statdb.mongo.uri=mongodb://localhost:27017/unifi_stats
|
||||
unifi.db.name=unifi
|
||||
debug.device=debug
|
||||
debug.mgmt=debug
|
||||
debug.system=debug
|
||||
debug.sdn=warn
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
job "unifi" {
|
||||
|
||||
datacenters = [[ .nomad.datacenters | toJSON ]]
|
||||
[[- template "common/job_start.tpl" .nomad ]]
|
||||
|
||||
group "unifi" {
|
||||
|
||||
|
@ -88,6 +88,11 @@ job "unifi" {
|
|||
interval = "30s"
|
||||
timeout = "5s"
|
||||
task = "mongo"
|
||||
|
||||
check_restart {
|
||||
limit = 4
|
||||
grace = "3m"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -108,7 +113,7 @@ job "unifi" {
|
|||
|
||||
[[ template "common/task.wait_for.tpl" dict
|
||||
"ctx" .
|
||||
"SERVICE_1" "unifi-mongo" ]]
|
||||
"wait_for" .unifi.controller.wait_for ]]
|
||||
|
||||
task "nginx" {
|
||||
driver = [[ .unifi.nginx.driver | toJSON ]]
|
||||
|
@ -131,7 +136,7 @@ _EOF
|
|||
destination = "local/nginx.conf"
|
||||
}
|
||||
|
||||
[[ template "common/resources.tpl" .unifi.nginx.resources ]]
|
||||
[[ template "common/resources.tpl" .unifi.nginx.resources ]]
|
||||
}
|
||||
|
||||
task "controller" {
|
||||
|
@ -190,11 +195,10 @@ _EOF
|
|||
|
||||
task "mongo" {
|
||||
driver = [[ .unifi.mongo.driver | toJSON ]]
|
||||
user = 999
|
||||
|
||||
lifecycle {
|
||||
hook = "prestart"
|
||||
sidecar = "true"
|
||||
hook = "prestart"
|
||||
sidecar = true
|
||||
}
|
||||
|
||||
config {
|
||||
|
|
|
@ -12,6 +12,9 @@ unifi:
|
|||
cpu: 200
|
||||
memory: 1024
|
||||
|
||||
wait_for:
|
||||
- service: unifi-mongo
|
||||
|
||||
env: {}
|
||||
|
||||
public_url: https://unifi.example.org
|
||||
|
|
Loading…
Reference in New Issue