Update Seafile stack configuration by modifying storage paths in stack.env and swarm-compose.yml to point to a new local directory. Introduce a new stack.env.portainer file containing environment variables for Seafile services, enhancing deployment clarity and organization.
This commit is contained in:
@@ -24,7 +24,7 @@ MD_STORAGE_TYPE=$SEAF_SERVER_STORAGE_TYPE # disk, s3
|
|||||||
SS_STORAGE_TYPE=$SEAF_SERVER_STORAGE_TYPE # disk, s3
|
SS_STORAGE_TYPE=$SEAF_SERVER_STORAGE_TYPE # disk, s3
|
||||||
|
|
||||||
### Local storage path
|
### Local storage path
|
||||||
BASIC_STORAGE_PATH=/opt
|
BASIC_STORAGE_PATH=/home/trav/seafile
|
||||||
SEAFILE_VOLUME=$BASIC_STORAGE_PATH/seafile-data
|
SEAFILE_VOLUME=$BASIC_STORAGE_PATH/seafile-data
|
||||||
SEAFILE_MYSQL_VOLUME=$BASIC_STORAGE_PATH/seafile-mysql/db
|
SEAFILE_MYSQL_VOLUME=$BASIC_STORAGE_PATH/seafile-mysql/db
|
||||||
SEAFILE_ELASTICSEARCH_VOLUME=$BASIC_STORAGE_PATH/seafile-elasticsearch/data
|
SEAFILE_ELASTICSEARCH_VOLUME=$BASIC_STORAGE_PATH/seafile-elasticsearch/data
|
||||||
|
|||||||
55
stack.env.portainer
Normal file
55
stack.env.portainer
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
SEAFILE_NODE=little
|
||||||
|
SEAFILE_IMAGE=seafileltd/seafile-pro-mc:13.0-latest
|
||||||
|
SEAFILE_DB_IMAGE=mariadb:10.11
|
||||||
|
SEAFILE_REDIS_IMAGE=redis
|
||||||
|
SEAFILE_ELASTICSEARCH_IMAGE=elasticsearch:8.15.0
|
||||||
|
SEADOC_IMAGE=seafileltd/sdoc-server:2.0-latest
|
||||||
|
SEAFILE_ELASTICSEARCH_VOLUME=/home/trav/seafile/seafile-elasticsearch/data
|
||||||
|
SEAFILE_MYSQL_VOLUME=/home/trav/seafile/seafile-mysql/db
|
||||||
|
SEAFILE_VOLUME=/home/trav/seafile/seafile-data
|
||||||
|
SEADOC_VOLUME=/home/trav/seafile/seadoc-data
|
||||||
|
SEAFILE_SERVER_HOSTNAME=sf.lab
|
||||||
|
SEAFILE_SERVER_PROTOCOL=http
|
||||||
|
TIME_ZONE=Etc/UTC
|
||||||
|
JWT_PRIVATE_KEY=51a482da346fa9a7ea050600c30348b367f7a7144b814273e152c2c8f95965cc
|
||||||
|
SEAFILE_MYSQL_DB_HOST=db
|
||||||
|
SEAFILE_MYSQL_DB_PORT=3306
|
||||||
|
SEAFILE_MYSQL_DB_USER=seafile
|
||||||
|
SEAFILE_MYSQL_DB_PASSWORD=squirtle123456
|
||||||
|
SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db
|
||||||
|
SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db
|
||||||
|
SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub_db
|
||||||
|
SEADOC_MYSQL_DB_NAME=seahub_db
|
||||||
|
CACHE_PROVIDER=redis
|
||||||
|
REDIS_HOST=redis
|
||||||
|
REDIS_PORT=6379
|
||||||
|
REDIS_PASSWORD=
|
||||||
|
MEMCACHED_HOST=memcached
|
||||||
|
MEMCACHED_PORT=11211
|
||||||
|
INIT_SEAFILE_MYSQL_ROOT_PASSWORD=squirtle123456
|
||||||
|
INIT_SEAFILE_ADMIN_EMAIL=travis.vas@gmail.com
|
||||||
|
INIT_SEAFILE_ADMIN_PASSWORD=squirtle123
|
||||||
|
SEAFILE_SERVICE_URL=http://seafile
|
||||||
|
SITE_ROOT=/
|
||||||
|
NON_ROOT=false
|
||||||
|
SEAFILE_LOG_TO_STDOUT=false
|
||||||
|
ENABLE_SEADOC=true
|
||||||
|
SEAF_SERVER_STORAGE_TYPE=disk
|
||||||
|
S3_COMMIT_BUCKET=
|
||||||
|
S3_FS_BUCKET=
|
||||||
|
S3_BLOCK_BUCKET=
|
||||||
|
S3_KEY_ID=
|
||||||
|
S3_SECRET_KEY=
|
||||||
|
S3_USE_V4_SIGNATURE=true
|
||||||
|
S3_AWS_REGION=us-east-1
|
||||||
|
S3_HOST=
|
||||||
|
S3_USE_HTTPS=true
|
||||||
|
S3_PATH_STYLE_REQUEST=false
|
||||||
|
S3_SSE_C_KEY=
|
||||||
|
ENABLE_NOTIFICATION_SERVER=false
|
||||||
|
INNER_NOTIFICATION_SERVER_URL=http://notification-server:8083
|
||||||
|
NOTIFICATION_SERVER_URL=
|
||||||
|
ENABLE_SEAFILE_AI=false
|
||||||
|
SEAFILE_AI_SERVER_URL=http://seafile-ai:8888
|
||||||
|
MD_FILE_COUNT_LIMIT=100000
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ x-deploy-default: &deploy_default
|
|||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
# IMPORTANT: because these are bind-backed volumes, keep services on the node that has the data paths.
|
# IMPORTANT: because these are bind-backed volumes, keep services on the node that has the data paths.
|
||||||
- node.hostname == crackbox
|
- node.hostname == little
|
||||||
|
|
||||||
services:
|
services:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
@@ -211,7 +211,7 @@ volumes:
|
|||||||
driver_opts:
|
driver_opts:
|
||||||
type: none
|
type: none
|
||||||
o: bind
|
o: bind
|
||||||
device: /opt/seafile/seafile-elasticsearch/data
|
device: /home/trav/seafile/seafile-elasticsearch/data
|
||||||
|
|
||||||
seafile_mysql_data:
|
seafile_mysql_data:
|
||||||
name: seafile_mysql_data
|
name: seafile_mysql_data
|
||||||
@@ -219,7 +219,7 @@ volumes:
|
|||||||
driver_opts:
|
driver_opts:
|
||||||
type: none
|
type: none
|
||||||
o: bind
|
o: bind
|
||||||
device: /opt/seafile/seafile-mysql/db
|
device: /home/trav/seafile/seafile-mysql/db
|
||||||
|
|
||||||
seafile_shared:
|
seafile_shared:
|
||||||
name: seafile_shared
|
name: seafile_shared
|
||||||
@@ -227,7 +227,7 @@ volumes:
|
|||||||
driver_opts:
|
driver_opts:
|
||||||
type: none
|
type: none
|
||||||
o: bind
|
o: bind
|
||||||
device: /opt/seafile/seafile-data
|
device: /home/trav/seafile/seafile-data
|
||||||
|
|
||||||
seadoc_shared:
|
seadoc_shared:
|
||||||
name: seadoc_shared
|
name: seadoc_shared
|
||||||
@@ -235,7 +235,7 @@ volumes:
|
|||||||
driver_opts:
|
driver_opts:
|
||||||
type: none
|
type: none
|
||||||
o: bind
|
o: bind
|
||||||
device: /opt/seafile/seadoc-data
|
device: /home/trav/seafile/seadoc-data
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net:
|
net:
|
||||||
|
|||||||
Reference in New Issue
Block a user