configure new seafile 13

This commit is contained in:
2025-12-06 21:00:35 +01:00
parent da288fc5d4
commit f2e1c4cd62
7 changed files with 71 additions and 46 deletions

View File

@@ -1,13 +1,72 @@
services:
seafile:
container_name: seafile
environment:
- MODE=autorun
image: gronis/seafile:9.0.4
ports:
- 8000:8000
- 8082:8082
restart: unless-stopped
volumes:
- /opt/seafile:/seafile:rw
- /media/seafile:/seafile/seafile-data:rw
seafile-mysql:
image: mariadb:11.8.5
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=ROOT_PASSWORD
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- /opt/seafile/database:/var/lib/mysql
healthcheck:
test:
[
"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

View File

@@ -1,3 +0,0 @@
[General]
SERVICE_URL = https://herderin.veenboer.xyz/seafile

View File

@@ -1 +0,0 @@
/seafile/conf

View File

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

View File

@@ -1,3 +0,0 @@
[fileserver]
port=8082
max_download_dir_size=8192

View File

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

View File

@@ -1 +0,0 @@
9.0.4