*** Running /etc/my_init.d/01_create_data_links.sh...
*** Booting runit daemon...
*** Runit started as PID 20
*** Running /scripts/enterpoint.sh...
2025-01-12 01:53:35 Nginx ready
2025-01-12 01:53:35 This is an idle script (infinite loop) to keep container running.
[2025-01-12 01:53:35] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
[01/12/2025 01:53:35][upgrade]: The container was recreated, start fix the media symlinks
mv: not replacing '/shared/seafile/seahub-data/avatars/default-non-register.jpg'
mv: not replacing '/shared/seafile/seahub-data/avatars/default.png'
mv: not replacing '/shared/seafile/seahub-data/avatars/groups'
[01/12/2025 01:53:35][upgrade]: Done
Error: .env file not found.
Please follow the upgrade manual to set the .env file.
Traceback (most recent call last):
File "/scripts/start.py", line 94, in <module>
main()
File "/scripts/start.py", line 79, in main
call('{} start'.format(get_script('seafile.sh')))
File "/scripts/utils.py", line 70, in call
return subprocess.check_call(*a, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-12.0.7/seafile.sh start' returned non-zero exit status 255.
已下载.env文件并相应修改,放置在docker-compose.yml的同一目录,
以下是.env的配置
COMPOSE_FILE='docker-compose.yml'
COMPOSE_PATH_SEPARATOR=','
SEAFILE_IMAGE=seafileltd/seafile-mc:12.0-latest
SEAFILE_DB_IMAGE=mariadb:10.11
SEAFILE_MEMCACHED_IMAGE=memcached:1.6.18
SEAFILE_VOLUMES=/data/cloudDisk
SEAFILE_MYSQL_VOLUMES=/data/docker/seafile/mysql
SEAFILE_MYSQL_DB_HOST=db
SEAFILE_MYSQL_ROOT_PASSWORD=***
SEAFILE_SSL_PORT=
TIME_ZONE='Asia/Shanghai'
SEAFILE_SERVER_HOSTNAME=***
SEAFILE_SERVER_LETSENCRYPT=false
SEAFILE_FORCE_HTTPS_IN_CONF=false
SEAFILE_ADMIN_EMAIL=***
SEAFILE_ADMIN_PASSWORD=***