Thingvellir as nomad server
This commit is contained in:
41
data/nomad/presencia.nomad
Normal file
41
data/nomad/presencia.nomad
Normal file
@@ -0,0 +1,41 @@
|
||||
job "presencia" {
|
||||
region = "global"
|
||||
datacenters = ["samfelag"]
|
||||
type = "service"
|
||||
|
||||
group "presencia" {
|
||||
count = 1
|
||||
|
||||
restart {
|
||||
attempts = 5
|
||||
delay = "15s"
|
||||
}
|
||||
|
||||
network {
|
||||
port "http" {
|
||||
to = 5000
|
||||
}
|
||||
}
|
||||
|
||||
# PRESENCIA APP
|
||||
task "presencia" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "marc.sastre.cat/presencia"
|
||||
ports = ["http"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 50
|
||||
memory = 64
|
||||
}
|
||||
|
||||
service {
|
||||
name = "presencia"
|
||||
port = "http"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user