forked from Deuxfleurs/infrastructure
Port seafile
This commit is contained in:
parent
e74737e6e3
commit
9fef7ae777
5 changed files with 38 additions and 22 deletions
|
@ -1,6 +1,13 @@
|
||||||
version: '3.4'
|
version: '3.4'
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
mariadb:
|
||||||
|
build:
|
||||||
|
context: ./mariadb
|
||||||
|
args:
|
||||||
|
VERSION: 4 # fake for now
|
||||||
|
image: superboum/amd64_mariadb:v4
|
||||||
|
|
||||||
# Instant Messaging
|
# Instant Messaging
|
||||||
riot:
|
riot:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
[mysqld]
|
[mysqld]
|
||||||
bind-address = 0.0.0.0
|
bind-address = *
|
||||||
|
|
16
app/config/configuration/seafile/conf/gunicorn.conf
Normal file
16
app/config/configuration/seafile/conf/gunicorn.conf
Normal 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
|
|
@ -12,7 +12,7 @@ job "mariadb" {
|
||||||
task "server" {
|
task "server" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "superboum/amd64_mariadb:v3"
|
image = "superboum/amd64_mariadb:v4"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
command = "tail"
|
command = "tail"
|
||||||
args = [
|
args = [
|
||||||
|
|
|
@ -13,17 +13,12 @@ job "seafile" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "superboum/amd64_seafile:v6"
|
image = "superboum/amd64_seafile:v6"
|
||||||
|
network_mode = "host"
|
||||||
|
|
||||||
## cmd + args are used for running an instance attachable for update
|
## cmd + args are used for running an instance attachable for update
|
||||||
# command = "/bin/sleep"
|
# command = "/bin/sleep"
|
||||||
# args = ["999999"]
|
# args = ["999999"]
|
||||||
|
|
||||||
port_map {
|
|
||||||
seahub_port = 8000
|
|
||||||
seafdav_port = 8084
|
|
||||||
seafhttp_port = 8082
|
|
||||||
}
|
|
||||||
|
|
||||||
mounts = [
|
mounts = [
|
||||||
{
|
{
|
||||||
type = "bind"
|
type = "bind"
|
||||||
|
@ -40,11 +35,6 @@ job "seafile" {
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
memory = 512
|
memory = 512
|
||||||
network {
|
|
||||||
port "seahub_port" {}
|
|
||||||
port "seafhttp_port" {}
|
|
||||||
port "seafdav_port" {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
|
@ -54,12 +44,13 @@ job "seafile" {
|
||||||
"traefik.frontend.entryPoints=https,http",
|
"traefik.frontend.entryPoints=https,http",
|
||||||
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefix:/"
|
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefix:/"
|
||||||
]
|
]
|
||||||
port = "seahub_port"
|
port = 8000
|
||||||
address_mode = "host"
|
address_mode = "driver"
|
||||||
name = "seahub"
|
name = "seahub"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
port = "seahub_port"
|
port = 8000
|
||||||
|
address_mode = "driver"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
check_restart {
|
||||||
|
@ -78,12 +69,13 @@ job "seafile" {
|
||||||
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefixStrip:/seafhttp"
|
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefixStrip:/seafhttp"
|
||||||
|
|
||||||
]
|
]
|
||||||
port = "seafhttp_port"
|
port = 8082
|
||||||
address_mode = "host"
|
address_mode = "driver"
|
||||||
name = "seafhttp"
|
name = "seafhttp"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
port = "seafhttp_port"
|
port = 8082
|
||||||
|
address_mode = "driver"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
check_restart {
|
||||||
|
@ -102,12 +94,13 @@ job "seafile" {
|
||||||
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefix:/seafdav"
|
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefix:/seafdav"
|
||||||
|
|
||||||
]
|
]
|
||||||
port = "seafdav_port"
|
port = 8084
|
||||||
address_mode = "host"
|
address_mode = "driver"
|
||||||
name = "seafdav"
|
name = "seafdav"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
port = "seafdav_port"
|
port = 8084
|
||||||
|
address_mode = "driver"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
check_restart {
|
||||||
|
|
Loading…
Reference in a new issue