51 lines
776 B
Plaintext
51 lines
776 B
Plaintext
|
|
job "citti" {
|
||
|
|
datacenters = ["dc1"]
|
||
|
|
type = "service"
|
||
|
|
|
||
|
|
group "app" {
|
||
|
|
count = 1
|
||
|
|
|
||
|
|
volume "citti-data" {
|
||
|
|
type = "host"
|
||
|
|
read_only = false
|
||
|
|
source = "citti-data"
|
||
|
|
}
|
||
|
|
|
||
|
|
network {
|
||
|
|
port "http" {
|
||
|
|
static = 9756
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
task "web" {
|
||
|
|
driver = "docker"
|
||
|
|
|
||
|
|
config {
|
||
|
|
image = "gea.i80.dk/hjess/citti:latest"
|
||
|
|
ports = ["http"]
|
||
|
|
force_pull = true
|
||
|
|
}
|
||
|
|
|
||
|
|
volume_mount {
|
||
|
|
volume = "citti-data"
|
||
|
|
destination = "/data"
|
||
|
|
read_only = false
|
||
|
|
}
|
||
|
|
|
||
|
|
env {
|
||
|
|
DATA_DIR = "/data"
|
||
|
|
}
|
||
|
|
|
||
|
|
resources {
|
||
|
|
cpu = 200
|
||
|
|
memory = 256
|
||
|
|
}
|
||
|
|
|
||
|
|
service {
|
||
|
|
name = "citti"
|
||
|
|
port = "http"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|