diff options
author | Alex Auvolat <alex@adnab.me> | 2023-05-15 17:30:41 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-05-15 17:30:41 +0200 |
commit | 560486bc50f5298d91706604339513f6840a2a18 (patch) | |
tree | c1285189401eb621a2a26e462bd00d867760955b /cluster/prod/app/plume/deploy/plume.hcl | |
parent | 2488ad0ac296732eb7c3c9c3bc28e1e73f5b06bc (diff) | |
download | nixcfg-560486bc50f5298d91706604339513f6840a2a18.tar.gz nixcfg-560486bc50f5298d91706604339513f6840a2a18.zip |
prod plume with s3 backendplume-s3
Diffstat (limited to 'cluster/prod/app/plume/deploy/plume.hcl')
-rw-r--r-- | cluster/prod/app/plume/deploy/plume.hcl | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/cluster/prod/app/plume/deploy/plume.hcl b/cluster/prod/app/plume/deploy/plume.hcl index 4470099..c266167 100644 --- a/cluster/prod/app/plume/deploy/plume.hcl +++ b/cluster/prod/app/plume/deploy/plume.hcl @@ -1,12 +1,7 @@ job "plume-blog" { - datacenters = ["orion"] + datacenters = ["orion", "neptune"] type = "service" - constraint { - attribute = "${attr.cpu.arch}" - value = "amd64" - } - group "plume" { count = 1 @@ -15,23 +10,13 @@ job "plume-blog" { } task "plume" { - constraint { - attribute = "${attr.unique.hostname}" - operator = "=" - value = "dahlia" - } - driver = "docker" config { - image = "superboum/plume:v8" + image = "lxpz/plume_s3:v1" network_mode = "host" ports = [ "web_port" ] - #command = "cat" - #args = [ "/dev/stdout" ] - volumes = [ - "/mnt/ssd/plume/search_index:/app/search_index", - "/mnt/ssd/plume/media:/app/static/media" - ] + command = "sh" + args = [ "-c", "plm search init; plm search refill; plume" ] } template { @@ -51,6 +36,7 @@ job "plume-blog" { tags = [ "plume", "tricot plume.deuxfleurs.fr", + "d53-cname plume.deuxfleurs.fr", ] port = "web_port" address_mode = "host" |