From 9fef7ae777eb7fd92e6e650aa564ff474830d4eb Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 28 Oct 2020 15:09:51 +0100 Subject: Port seafile --- app/deployment/mariadb.hcl | 2 +- app/deployment/seafile.hcl | 33 +++++++++++++-------------------- 2 files changed, 14 insertions(+), 21 deletions(-) (limited to 'app/deployment') diff --git a/app/deployment/mariadb.hcl b/app/deployment/mariadb.hcl index 29e2be6..da24273 100644 --- a/app/deployment/mariadb.hcl +++ b/app/deployment/mariadb.hcl @@ -12,7 +12,7 @@ job "mariadb" { task "server" { driver = "docker" config { - image = "superboum/amd64_mariadb:v3" + image = "superboum/amd64_mariadb:v4" network_mode = "host" command = "tail" args = [ 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 { -- cgit v1.2.3