diff options
Diffstat (limited to 'app/deployment/seafile.hcl')
-rw-r--r-- | app/deployment/seafile.hcl | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/app/deployment/seafile.hcl b/app/deployment/seafile.hcl index e22699c..3a23be0 100644 --- a/app/deployment/seafile.hcl +++ b/app/deployment/seafile.hcl @@ -13,17 +13,12 @@ job "seafile" { driver = "docker" config { image = "superboum/amd64_seafile:v6" + network_mode = "host" ## cmd + args are used for running an instance attachable for update # command = "/bin/sleep" # args = ["999999"] - port_map { - seahub_port = 8000 - seafdav_port = 8084 - seafhttp_port = 8082 - } - mounts = [ { type = "bind" @@ -40,11 +35,6 @@ job "seafile" { resources { memory = 512 - network { - port "seahub_port" {} - port "seafhttp_port" {} - port "seafdav_port" {} - } } service { @@ -54,12 +44,13 @@ job "seafile" { "traefik.frontend.entryPoints=https,http", "traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefix:/" ] - port = "seahub_port" - address_mode = "host" + port = 8000 + address_mode = "driver" name = "seahub" check { type = "tcp" - port = "seahub_port" + port = 8000 + address_mode = "driver" interval = "60s" timeout = "5s" check_restart { @@ -78,12 +69,13 @@ job "seafile" { "traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefixStrip:/seafhttp" ] - port = "seafhttp_port" - address_mode = "host" + port = 8082 + address_mode = "driver" name = "seafhttp" check { type = "tcp" - port = "seafhttp_port" + port = 8082 + address_mode = "driver" interval = "60s" timeout = "5s" check_restart { @@ -102,12 +94,13 @@ job "seafile" { "traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefix:/seafdav" ] - port = "seafdav_port" - address_mode = "host" + port = 8084 + address_mode = "driver" name = "seafdav" check { type = "tcp" - port = "seafdav_port" + port = 8084 + address_mode = "driver" interval = "60s" timeout = "5s" check_restart { |