aboutsummaryrefslogtreecommitdiff
path: root/app/deployment/seafile.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'app/deployment/seafile.hcl')
-rw-r--r--app/deployment/seafile.hcl63
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"
]