diff --git a/compose.seafile.yaml b/compose.seafile.yaml index cbd1185..f38136d 100644 --- a/compose.seafile.yaml +++ b/compose.seafile.yaml @@ -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 diff --git a/seafile/conf/ccnet.conf b/seafile/conf/ccnet.conf deleted file mode 100644 index ad2ab80..0000000 --- a/seafile/conf/ccnet.conf +++ /dev/null @@ -1,3 +0,0 @@ -[General] -SERVICE_URL = https://herderin.veenboer.xyz/seafile - diff --git a/seafile/conf/conf b/seafile/conf/conf deleted file mode 120000 index eaa1b30..0000000 --- a/seafile/conf/conf +++ /dev/null @@ -1 +0,0 @@ -/seafile/conf \ No newline at end of file diff --git a/seafile/conf/gunicorn.conf.py b/seafile/conf/gunicorn.conf.py deleted file mode 100644 index d3778ad..0000000 --- a/seafile/conf/gunicorn.conf.py +++ /dev/null @@ -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 diff --git a/seafile/conf/seafile.conf b/seafile/conf/seafile.conf deleted file mode 100644 index a6fbb1f..0000000 --- a/seafile/conf/seafile.conf +++ /dev/null @@ -1,3 +0,0 @@ -[fileserver] -port=8082 -max_download_dir_size=8192 diff --git a/seafile/conf/seahub_settings.py b/seafile/conf/seahub_settings.py deleted file mode 100644 index 20bb3c2..0000000 --- a/seafile/conf/seahub_settings.py +++ /dev/null @@ -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' diff --git a/seafile/version b/seafile/version deleted file mode 100644 index 77063fc..0000000 --- a/seafile/version +++ /dev/null @@ -1 +0,0 @@ -9.0.4