Port seafile

This commit is contained in:
Quentin 2020-10-28 15:09:51 +01:00
parent e74737e6e3
commit 9fef7ae777
5 changed files with 38 additions and 22 deletions

View File

@ -1,6 +1,13 @@
version: '3.4'
services:
mariadb:
build:
context: ./mariadb
args:
VERSION: 4 # fake for now
image: superboum/amd64_mariadb:v4
# Instant Messaging
riot:
build:

View File

@ -1,2 +1,2 @@
[mysqld]
bind-address = 0.0.0.0
bind-address = *

View File

@ -0,0 +1,16 @@
import os
daemon = True
workers = 5
# default localhost:8000
bind = "[::]:8000"
# Pid
pids_dir = '/srv/webstore/pids'
pidfile = os.path.join(pids_dir, 'seahub.pid')
# for file upload, we need a longer timeout value (default is only 30s, too short)
timeout = 1200
limit_request_line = 8190

View File

@ -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 = [

View File

@ -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 {