add filestash job
This commit is contained in:
parent
c8c621c8ce
commit
c817dcd385
63
filestash.nomad
Normal file
63
filestash.nomad
Normal file
@ -0,0 +1,63 @@
|
||||
|
||||
job "filestash" {
|
||||
datacenters = ["homelab"]
|
||||
type = "service"
|
||||
meta {
|
||||
forcedeploy = "0"
|
||||
}
|
||||
constraint {
|
||||
attribute = "${attr.cpu.arch}"
|
||||
value = "amd64"
|
||||
}
|
||||
|
||||
|
||||
group "filestash"{
|
||||
network {
|
||||
mode = "host"
|
||||
port "http" {
|
||||
to = 8334
|
||||
}
|
||||
port "onlyoffice"{
|
||||
to = 80
|
||||
}
|
||||
}
|
||||
task "filestash" {
|
||||
driver = "docker"
|
||||
service {
|
||||
name = "filestash"
|
||||
port = "http"
|
||||
tags = [
|
||||
"homer.enable=true",
|
||||
"homer.name=FileStash",
|
||||
"homer.service=Application",
|
||||
"homer.url=http://file.ducamps.win",
|
||||
"homer.logo=http://file.ducamps.win/assets/logo/apple-touch-icon.png",
|
||||
"homer.target=_blank",
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`file.ducamps.win`)",
|
||||
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=file.ducamps.win",
|
||||
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver",
|
||||
|
||||
|
||||
]
|
||||
}
|
||||
config {
|
||||
image = "machines/filestash"
|
||||
ports = ["http"]
|
||||
volumes = [
|
||||
"/mnt/diskstation/nomad/filestash:/app/data/state"
|
||||
]
|
||||
|
||||
}
|
||||
env {
|
||||
APPLICATION_URL= ""
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 300
|
||||
memory = 300
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user