Initial WebODM config.
This commit is contained in:
60
services/webodm.hcl
Normal file
60
services/webodm.hcl
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
job "webodm" {
|
||||||
|
datacenters = ["alo"]
|
||||||
|
|
||||||
|
group "odm" {
|
||||||
|
network {
|
||||||
|
port "ui" {
|
||||||
|
to = 8000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task "web" {
|
||||||
|
driver = "docker"
|
||||||
|
|
||||||
|
config {
|
||||||
|
image = "opendronemap/webodm_webapp"
|
||||||
|
ports = ["ui"]
|
||||||
|
command = "/webodm/start.sh"
|
||||||
|
volumes = [
|
||||||
|
"local/local_settings.py:/webodm/webodm/local_settings.py:ro",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
env {
|
||||||
|
WO_BROKER = "redis://redis.service.consul"
|
||||||
|
}
|
||||||
|
|
||||||
|
template {
|
||||||
|
data = <<EOH
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||||
|
'NAME': 'webodm',
|
||||||
|
'USER': 'webodm',
|
||||||
|
'PASSWORD': 'ura3quohguzeikaiCaab',
|
||||||
|
'HOST': 'postgres.service.consul',
|
||||||
|
'PORT': '5432',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOH
|
||||||
|
destination = "local/local_settings.py"
|
||||||
|
}
|
||||||
|
|
||||||
|
resources {
|
||||||
|
cpu = 2000
|
||||||
|
memory = 2048
|
||||||
|
}
|
||||||
|
|
||||||
|
service {
|
||||||
|
name = "webodm"
|
||||||
|
port = "ui"
|
||||||
|
|
||||||
|
tags = [
|
||||||
|
"traefik.enable=true",
|
||||||
|
"traefik.http.routers.webodm.entryPoints=websecure",
|
||||||
|
"traefik.http.routers.webodm.middlewares=authentik@file",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user