diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 22:57:41 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 22:57:41 +0100 |
commit | bf58bd2a2cf7d8718f3a869f43f08253cc14fb7a (patch) | |
tree | 8d640973e80e66c33f7119b317ac313a59d3862c /app/deployment | |
parent | ed3ed5e2e4b80cc7b79a152013e21ed63ad86fe4 (diff) | |
download | infrastructure-bf58bd2a2cf7d8718f3a869f43f08253cc14fb7a.tar.gz infrastructure-bf58bd2a2cf7d8718f3a869f43f08253cc14fb7a.zip |
Some Seafile wizardry to bypass ipv4 only limitations
Diffstat (limited to 'app/deployment')
-rw-r--r-- | app/deployment/seafile.hcl | 63 |
1 files changed, 38 insertions, 25 deletions
diff --git a/app/deployment/seafile.hcl b/app/deployment/seafile.hcl index 3a23be0..ede755a 100644 --- a/app/deployment/seafile.hcl +++ b/app/deployment/seafile.hcl @@ -9,6 +9,44 @@ job "seafile" { group "main" { count = 1 + task "hack" { + driver = "docker" + config { + image = "alpine/socat:1.0.5" + network_mode = "host" + command = "tcp6-listen:8085,fork,reuseaddr" + args = [ "tcp-connect:127.0.0.1:8083" ] + } + resources { + memory = 10 + } + service { + tags = [ + "seafile", + "traefik.enable=true", + "traefik.frontend.entryPoints=https,http", + "traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefixStrip:/seafhttp" + + ] + port = 8085 + address_mode = "driver" + name = "seafhttp" + check { + type = "tcp" + port = 8085 + address_mode = "driver" + interval = "60s" + timeout = "5s" + check_restart { + limit = 3 + grace = "90s" + ignore_warnings = false + } + } + } + + } + task "server" { driver = "docker" config { @@ -66,31 +104,6 @@ job "seafile" { "seafile", "traefik.enable=true", "traefik.frontend.entryPoints=https,http", - "traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefixStrip:/seafhttp" - - ] - port = 8082 - address_mode = "driver" - name = "seafhttp" - check { - type = "tcp" - port = 8082 - address_mode = "driver" - interval = "60s" - timeout = "5s" - check_restart { - limit = 3 - grace = "90s" - ignore_warnings = false - } - } - } - - service { - tags = [ - "seafile", - "traefik.enable=true", - "traefik.frontend.entryPoints=https,http", "traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefix:/seafdav" ] |