aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/plume/deploy/plume.hcl
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-05-16 13:38:07 +0000
committerAlex <alex@adnab.me>2023-05-16 13:38:07 +0000
commit8a75be4d43fb83de2737c18a314e2602c775f193 (patch)
tree9ffa4130941cd57138e26eb49e5ce3b67e5967ef /cluster/prod/app/plume/deploy/plume.hcl
parent4ca45cf1d4ea44778501d9da640c156d842e539e (diff)
parent560486bc50f5298d91706604339513f6840a2a18 (diff)
downloadnixcfg-8a75be4d43fb83de2737c18a314e2602c775f193.tar.gz
nixcfg-8a75be4d43fb83de2737c18a314e2602c775f193.zip
Merge pull request 'prod: Plume with S3 storage backend' (#13) from plume-s3 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/nixcfg/pulls/13
Diffstat (limited to 'cluster/prod/app/plume/deploy/plume.hcl')
-rw-r--r--cluster/prod/app/plume/deploy/plume.hcl24
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"