Migrated plume
This commit is contained in:
parent
1624b348df
commit
4f23adfbb9
2 changed files with 11 additions and 14 deletions
|
@ -17,7 +17,7 @@ MIGRATION_DIRECTORY=migrations/postgres
|
||||||
|
|
||||||
USE_HTTPS=0
|
USE_HTTPS=0
|
||||||
ROCKET_ADDRESS=::
|
ROCKET_ADDRESS=::
|
||||||
ROCKET_PORT=7878
|
ROCKET_PORT={{ env "NOMAD_PORT_web_port" }}
|
||||||
|
|
||||||
MEDIA_UPLOAD_DIRECTORY=/app/static/media
|
MEDIA_UPLOAD_DIRECTORY=/app/static/media
|
||||||
SEARCH_INDEX=/app/search_index
|
SEARCH_INDEX=/app/search_index
|
||||||
|
|
|
@ -9,11 +9,17 @@ job "plume" {
|
||||||
|
|
||||||
group "plume" {
|
group "plume" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
|
network {
|
||||||
|
port "web_port" { }
|
||||||
|
}
|
||||||
|
|
||||||
task "plume" {
|
task "plume" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "superboum/plume:v1"
|
image = "superboum/plume:v1"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
|
ports = [ "web_port" ]
|
||||||
#command = "cat"
|
#command = "cat"
|
||||||
#args = [ "/dev/stdout" ]
|
#args = [ "/dev/stdout" ]
|
||||||
volumes = [
|
volumes = [
|
||||||
|
@ -22,13 +28,8 @@ job "plume" {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
artifact {
|
|
||||||
source = "http://127.0.0.1:8500/v1/kv/configuration/plume/app.env?raw"
|
|
||||||
destination = "secrets/app.env.tpl"
|
|
||||||
mode = "file"
|
|
||||||
}
|
|
||||||
template {
|
template {
|
||||||
source = "secrets/app.env.tpl"
|
data = file("../config/configuration/plume/app.env")
|
||||||
destination = "secrets/app.env"
|
destination = "secrets/app.env"
|
||||||
env = true
|
env = true
|
||||||
}
|
}
|
||||||
|
@ -36,9 +37,6 @@ job "plume" {
|
||||||
resources {
|
resources {
|
||||||
memory = 100
|
memory = 100
|
||||||
cpu = 100
|
cpu = 100
|
||||||
network {
|
|
||||||
port "web_port" {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
|
@ -49,12 +47,11 @@ job "plume" {
|
||||||
"traefik.frontend.entryPoints=https,http",
|
"traefik.frontend.entryPoints=https,http",
|
||||||
"traefik.frontend.rule=Host:plume.deuxfleurs.fr",
|
"traefik.frontend.rule=Host:plume.deuxfleurs.fr",
|
||||||
]
|
]
|
||||||
port = 7878
|
port = "web_port"
|
||||||
address_mode = "driver"
|
address_mode = "host"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
port = 7878
|
port = "web_port"
|
||||||
address_mode = "driver"
|
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
check_restart {
|
||||||
|
|
Reference in a new issue