configure new seafile 13
This commit is contained in:
@@ -1,13 +1,72 @@
|
|||||||
services:
|
services:
|
||||||
seafile:
|
seafile-mysql:
|
||||||
container_name: seafile
|
image: mariadb:11.8.5
|
||||||
environment:
|
container_name: seafile-mysql
|
||||||
- MODE=autorun
|
environment:
|
||||||
image: gronis/seafile:9.0.4
|
- MYSQL_ROOT_PASSWORD=ROOT_PASSWORD
|
||||||
ports:
|
- MYSQL_LOG_CONSOLE=true
|
||||||
- 8000:8000
|
- MARIADB_AUTO_UPGRADE=1
|
||||||
- 8082:8082
|
volumes:
|
||||||
restart: unless-stopped
|
- /opt/seafile/database:/var/lib/mysql
|
||||||
volumes:
|
healthcheck:
|
||||||
- /opt/seafile:/seafile:rw
|
test:
|
||||||
- /media/seafile:/seafile/seafile-data:rw
|
[
|
||||||
|
"CMD",
|
||||||
|
"/usr/local/bin/healthcheck.sh",
|
||||||
|
"--connect",
|
||||||
|
"--mariadbupgrade",
|
||||||
|
"--innodb_initialized",
|
||||||
|
]
|
||||||
|
interval: 20s
|
||||||
|
start_period: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
|
seafile-redis:
|
||||||
|
image: redis:8.4.0
|
||||||
|
container_name: seafile-redis
|
||||||
|
ports:
|
||||||
|
- "6379:6379"
|
||||||
|
restart: unless-stopped
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- redis-server --requirepass "$$REDIS_PASSWORD"
|
||||||
|
environment:
|
||||||
|
- REDIS_PASSWORD=PASSWORD
|
||||||
|
|
||||||
|
seafile-server:
|
||||||
|
image: seafileltd/seafile-mc:13.0-latest
|
||||||
|
container_name: seafile-server
|
||||||
|
ports:
|
||||||
|
- "8082:80"
|
||||||
|
volumes:
|
||||||
|
- /opt/seafile/server/conf:/opt/seafile/conf
|
||||||
|
- /opt/seafile/shared:/shared
|
||||||
|
#- /opt/seafile/server/logs:/shared/logs/seafile
|
||||||
|
#- /opt/seafile/server/logs:/opt/seafile/logs
|
||||||
|
#- /opt/seafile/server:/opt/seafile
|
||||||
|
- /media/seafile:/shared/seafile/seafile-data
|
||||||
|
- /media/seafile/seahub-data:/shared/seafile/seahub-data
|
||||||
|
environment:
|
||||||
|
- DB_HOST=seafile-mysql
|
||||||
|
- DB_PORT=3306
|
||||||
|
- DB_ROOT_PASSWD=ROOT_PASSWORD
|
||||||
|
- DB_PASSWORD=PASSWORD
|
||||||
|
- TIME_ZONE=Europe/Amsterdam
|
||||||
|
- JWT_PRIVATE_KEY=F23HhfNSNxPsDNB9UaGFLbfNku4F7DPB
|
||||||
|
- SEAFILE_SERVER_HOSTNAME=seafile.uitgeest.veenboer.xyz
|
||||||
|
- SEAFILE_SERVER_PROTOCOL=https
|
||||||
|
- SEAFILE_MYSQL_DB_PORT=3306
|
||||||
|
- SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db
|
||||||
|
- SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub_db
|
||||||
|
- SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db
|
||||||
|
- SEAFILE_MYSQL_DB_HOST=seafile-mysql
|
||||||
|
- SEAFILE_MYSQL_DB_USER=seafile
|
||||||
|
- SEAFILE_MYSQL_DB_PASSWORD=seafile
|
||||||
|
- REDIS_HOST=seafile-redis
|
||||||
|
- REDIS_PORT=6379
|
||||||
|
- REDIS_PASSWORD=PASSWORD
|
||||||
|
depends_on:
|
||||||
|
- seafile-mysql
|
||||||
|
- seafile-redis
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
[General]
|
|
||||||
SERVICE_URL = https://herderin.veenboer.xyz/seafile
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/seafile/conf
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
daemon = True
|
|
||||||
workers = 5
|
|
||||||
|
|
||||||
# default localhost:8000
|
|
||||||
bind = "0.0.0.0:8000"
|
|
||||||
|
|
||||||
# Pid
|
|
||||||
pids_dir = '/opt/haiwen/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
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
[fileserver]
|
|
||||||
port=8082
|
|
||||||
max_download_dir_size=8192
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
SECRET_KEY = "by-t3pizx0b7b^x#4q8be4b@4n1g8vxle#bl@+gq8*x!2jt*g7"
|
|
||||||
SERVE_STATIC = False
|
|
||||||
MEDIA_URL = '/seafmedia/'
|
|
||||||
COMPRESS_URL = MEDIA_URL
|
|
||||||
STATIC_URL = MEDIA_URL + 'assets/'
|
|
||||||
SITE_ROOT = '/seafile/'
|
|
||||||
LOGIN_URL = '/seafile/accounts/login/'
|
|
||||||
FILE_SERVER_ROOT = 'https://herderin.veenboer.xyz/seafhttp'
|
|
||||||
SERVICE_URL = 'https://herderin.veenboer.xyz/seafile'
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
9.0.4
|
|
||||||
Reference in New Issue
Block a user