使用docker compose安装seafile

# docker compose up
[+] Running 4/3
 ✔ Network seafile_seafile-net  Created                                                                                                                                                                                    0.4s 
 ✔ Container seafile-memcached  Created                                                                                                                                                                                    0.1s 
 ✔ Container seafile-mysql      Created                                                                                                                                                                                    0.1s 
 ✔ Container seafile            Created                                                                                                                                                                                    0.0s 
Attaching to seafile, seafile-memcached, seafile-mysql
seafile-mysql      | 2024-02-04 09:10:39+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
seafile-mysql      | 2024-02-04 09:10:39+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
seafile-mysql      | 2024-02-04 09:10:39+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
seafile            | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile            | *** Booting runit daemon...
seafile            | *** Runit started as PID 16
seafile            | *** Running /scripts/enterpoint.sh...
seafile-mysql      | 2024-02-04 09:10:40+00:00 [Note] [Entrypoint]: Initializing database files
seafile            | 2024-02-04 17:10:40 Nginx ready 
seafile            | 2024-02-04 17:10:40 This is an idle script (infinite loop) to keep container running. 
seafile-mysql      | 
seafile-mysql      | 
seafile-mysql      | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
seafile-mysql      | To do so, start the server, then issue the following command:
seafile-mysql      | 
seafile-mysql      | '/usr/bin/mariadb-secure-installation'
seafile-mysql      | 
seafile-mysql      | which will also give you the option of removing the test
seafile-mysql      | databases and anonymous user created by default.  This is
seafile-mysql      | strongly recommended for production servers.
seafile-mysql      | 
seafile-mysql      | See the MariaDB Knowledgebase at https://mariadb.com/kb
seafile-mysql      | 
seafile-mysql      | Please report any problems at https://mariadb.org/jira
seafile-mysql      | 
seafile-mysql      | The latest information about MariaDB is available at https://mariadb.org/.
seafile-mysql      | 
seafile-mysql      | Consider joining MariaDB's strong and vibrant community:
seafile-mysql      | https://mariadb.org/get-involved/
seafile-mysql      | 
seafile-mysql      | 2024-02-04 09:10:41+00:00 [Note] [Entrypoint]: Database files initialized
seafile-mysql      | 2024-02-04 09:10:41+00:00 [Note] [Entrypoint]: Starting temporary server
seafile-mysql      | 2024-02-04 09:10:41+00:00 [Note] [Entrypoint]: Waiting for server startup
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 103
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Number of pools: 1
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Using Linux native AIO
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] InnoDB: 10.6.16 started; log sequence number 41354; transaction id 14
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql      | 2024-02-04  9:10:41 0 [Warning] 'user' entry 'root@6d62a50eb940' ignored in --skip-name-resolve mode.
seafile-mysql      | 2024-02-04  9:10:41 0 [Warning] 'proxies_priv' entry '@% root@6d62a50eb940' ignored in --skip-name-resolve mode.
seafile-mysql      | 2024-02-04  9:10:41 0 [Note] mariadbd: ready for connections.
seafile-mysql      | Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
seafile-mysql      | 2024-02-04 09:10:42+00:00 [Note] [Entrypoint]: Temporary server started.
seafile-mysql      | 2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)
seafile-mysql      | 
seafile-mysql      | 2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: Stopping temporary server
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: FTS optimize thread exiting.
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Starting shutdown...
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Buffer pool(s) dump completed at 240204  9:10:45
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Shutdown completed; log sequence number 42664; transaction id 15
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] mariadbd: Shutdown complete
seafile-mysql      | 
seafile-mysql      | 2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: Temporary server stopped
seafile-mysql      | 
seafile-mysql      | 2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.
seafile-mysql      | 
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 1
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Number of pools: 1
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Using Linux native AIO
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: 10.6.16 started; log sequence number 42664; transaction id 16
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] InnoDB: Buffer pool(s) load completed at 240204  9:10:45
seafile-mysql      | 2024-02-04  9:10:45 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] Server socket created on IP: '0.0.0.0'.
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] Server socket created on IP: '::'.
seafile-mysql      | 2024-02-04  9:10:45 0 [Note] mariadbd: ready for connections.
seafile-mysql      | Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile-mysql      | 2024-02-04  9:10:46 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'root' host: '172.20.0.4' (Got an error reading communication packets)
seafile            | [2024-02-04 17:10:46] Now running setup-seafile-mysql.py in auto mode.
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | Traceback (most recent call last):
seafile            |   File "/scripts/start.py", line 95, in <module>
seafile            |     main()
seafile            |   File "/scripts/start.py", line 59, in main
seafile            |     init_seafile_server()
seafile            |   File "/scripts/bootstrap.py", line 166, in init_seafile_server
seafile            |     call('{} auto -n seafile'.format(setup_script), env=env)
seafile            |   File "/scripts/utils.py", line 70, in call
seafile            |     return subprocess.check_call(*a, **kw)
seafile            |   File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
seafile            |     retcode = call(*popenargs, **kwargs)
seafile            |   File "/usr/lib/python3.10/subprocess.py", line 345, in call
seafile            |     with Popen(*popenargs, **kwargs) as p:
seafile            |   File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
seafile            |     self._execute_child(args, executable, preexec_fn, close_fds,
seafile            |   File "/usr/lib/python3.10/subprocess.py", line 1783, in _execute_child
seafile            |     env_list.append(k + b'=' + os.fsencode(v))
seafile            |   File "/usr/lib/python3.10/os.py", line 811, in fsencode
seafile            |     filename = fspath(filename)  # Does type-checking of `filename`.
seafile            | TypeError: expected str, bytes or os.PathLike object, not int

查看网络分配信息

# docker network inspect seafile_seafile-net
[
    {
        "Name": "seafile_seafile-net",
        "Id": "2278ab01a900996ea418efc59bd123fbc300ca45143e8def3a9dcb3d5cd637cd",
        "Created": "2024-02-04T17:10:38.415637028+08:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.20.0.0/16",
                    "Gateway": "172.20.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "21c80751634421e501a18843ce821e5d72fbf182342cab80ce78e92e4bd016eb": {
                "Name": "seafile",
                "EndpointID": "7b2bde24bd18d3e7dae795822202adeb3ded9870ffb2bf457bdacfc430ca8303",
                "MacAddress": "02:42:ac:14:00:04",
                "IPv4Address": "172.20.0.4/16",
                "IPv6Address": ""
            },
            "5809de1a7e5e330892737e242c47c9d84e33fc6cddae2fdc11a43dfa280f9268": {
                "Name": "seafile-memcached",
                "EndpointID": "94d8dd2910c845caa84c277529da235c4e89a1b32c17493ff60d12d93ae67aa3",
                "MacAddress": "02:42:ac:14:00:02",
                "IPv4Address": "172.20.0.2/16",
                "IPv6Address": ""
            },
            "6d62a50eb9406ad13615f10a678c1a99d24d591303d6352fb24076613c98d696": {
                "Name": "seafile-mysql",
                "EndpointID": "4489517633b7fa0a82902bbcce14e659c202f64b746a04de1b07f1f3b8a01ae2",
                "MacAddress": "02:42:ac:14:00:03",
                "IPv4Address": "172.20.0.3/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {
            "com.docker.compose.network": "seafile-net",
            "com.docker.compose.project": "seafile",
            "com.docker.compose.version": "2.24.5"
        }
    }
]

seafile-mysql 容器的启动日志,为什么会去连接 172.20.0.4 ,这个IP 不是分配给 seafile容器的么?

seafile 172.20.0.4
seafile-memcached 172.20.0.2
seafile-mysql 172.20.0.3

# docker logs seafile-mysql
2024-02-04 09:10:39+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
2024-02-04 09:10:39+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-02-04 09:10:39+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
2024-02-04 09:10:40+00:00 [Note] [Entrypoint]: Initializing database files


PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following command:

'/usr/bin/mariadb-secure-installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at https://mariadb.com/kb

Please report any problems at https://mariadb.org/jira

The latest information about MariaDB is available at https://mariadb.org/.

Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

2024-02-04 09:10:41+00:00 [Note] [Entrypoint]: Database files initialized
2024-02-04 09:10:41+00:00 [Note] [Entrypoint]: Starting temporary server
2024-02-04 09:10:41+00:00 [Note] [Entrypoint]: Waiting for server startup
2024-02-04  9:10:41 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 103
2024-02-04  9:10:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-02-04  9:10:41 0 [Note] InnoDB: Number of pools: 1
2024-02-04  9:10:41 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-02-04  9:10:41 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-02-04  9:10:41 0 [Note] InnoDB: Using Linux native AIO
2024-02-04  9:10:41 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-02-04  9:10:41 0 [Note] InnoDB: Completed initialization of buffer pool
2024-02-04  9:10:41 0 [Note] InnoDB: 128 rollback segments are active.
2024-02-04  9:10:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-02-04  9:10:41 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-02-04  9:10:41 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-02-04  9:10:41 0 [Note] InnoDB: 10.6.16 started; log sequence number 41354; transaction id 14
2024-02-04  9:10:41 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-02-04  9:10:41 0 [Warning] 'user' entry 'root@6d62a50eb940' ignored in --skip-name-resolve mode.
2024-02-04  9:10:41 0 [Warning] 'proxies_priv' entry '@% root@6d62a50eb940' ignored in --skip-name-resolve mode.
2024-02-04  9:10:41 0 [Note] mariadbd: ready for connections.
Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
2024-02-04 09:10:42+00:00 [Note] [Entrypoint]: Temporary server started.
2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)

2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: Stopping temporary server
2024-02-04  9:10:45 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
2024-02-04  9:10:45 0 [Note] InnoDB: FTS optimize thread exiting.
2024-02-04  9:10:45 0 [Note] InnoDB: Starting shutdown...
2024-02-04  9:10:45 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2024-02-04  9:10:45 0 [Note] InnoDB: Buffer pool(s) dump completed at 240204  9:10:45
2024-02-04  9:10:45 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-02-04  9:10:45 0 [Note] InnoDB: Shutdown completed; log sequence number 42664; transaction id 15
2024-02-04  9:10:45 0 [Note] mariadbd: Shutdown complete

2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: Temporary server stopped

2024-02-04 09:10:45+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.

2024-02-04  9:10:45 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 1
2024-02-04  9:10:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-02-04  9:10:45 0 [Note] InnoDB: Number of pools: 1
2024-02-04  9:10:45 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-02-04  9:10:45 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-02-04  9:10:45 0 [Note] InnoDB: Using Linux native AIO
2024-02-04  9:10:45 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-02-04  9:10:45 0 [Note] InnoDB: Completed initialization of buffer pool
2024-02-04  9:10:45 0 [Note] InnoDB: 128 rollback segments are active.
2024-02-04  9:10:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-02-04  9:10:45 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-02-04  9:10:45 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-02-04  9:10:45 0 [Note] InnoDB: 10.6.16 started; log sequence number 42664; transaction id 16
2024-02-04  9:10:45 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-02-04  9:10:45 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-02-04  9:10:45 0 [Note] InnoDB: Buffer pool(s) load completed at 240204  9:10:45
2024-02-04  9:10:45 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-02-04  9:10:45 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-02-04  9:10:45 0 [Note] Server socket created on IP: '::'.
2024-02-04  9:10:45 0 [Note] mariadbd: ready for connections.
Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2024-02-04  9:10:46 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'root' host: '172.20.0.4' (Got an error reading communication packets)

docker与docker-compose版本如下:

# docker version
Client: Docker Engine - Community
 Version:           25.0.2
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        29cf629
 Built:             Thu Feb  1 00:26:25 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          25.0.2
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       fce6e0c
  Built:            Thu Feb  1 00:25:25 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

 # docker compose version
Docker Compose version v2.24.5

docker-compose.yml 文件也没有什么毛病 。。。

version: '2.0'
services:
    db:
        image: mariadb:10.6
        container_name: seafile-mysql
        environment:
          - MYSQL_ROOT_PASSWORD=abc1234
          - MYSQL_LOG_CONSOLE=true
        volumes:
          - /data/seafile/mysql/db:/var/lib/mysql
        networks:
          - seafile-net
        restart: always

    memcached:
        image: memcached:1.6.18
        container_name: seafile-memcached
        entrypoint: memcached -m 256
        networks:
          - seafile-net
        restart: always

    seafile:
        image: seafileltd/seafile-mc:latest
        container_name: seafile
        ports:
          - "88:80"
        volumes:
          - /data/seafile/seafile-data:/shared
        environment:
          - DB_HOST=db
          - DB_ROOT_PASSWD=abc1234
          - TIME_ZONE=Asia/Shanghai
          - SEAFILE_ADMIN_EMAIL=abc@example.com
          - SEAFILE_ADMIN_PASSWORD=abc1234 
          - SEAFILE_SERVER_LETSENCRYPT=false
          - SEAFILE_SERVER_HOSTNAME=example.com

        depends_on:
          - db
          - memcached
        networks:
          - seafile-net
        restart: always

networks:
    seafile-net:
1 个赞

我跟你一样的问题,折腾了一天了没解决

我把镜像回退到seafileltd/seafile-mc:10.0.1 版本,没问题了

好难,现在seafile官方是营收有问题,技术服务跟不上了吗??
哎!

好的,我们会测试一下

感谢您的反馈,我们更新了seafileltd/seafile-mc:latest 镜像。
您可以通过 docker pull seafileltd/seafile-mc:latest 然后执行 docker compose up 安装 Seafile 11.0

官网处理速度还是挺快的,不过数据库的日志是这样的。
这正常吗?

docker logs seafile-mysql
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Initializing database files


PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following command:

'/usr/bin/mariadb-secure-installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at https://mariadb.com/kb

Please report any problems at https://mariadb.org/jira

The latest information about MariaDB is available at https://mariadb.org/.

Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

2024-02-05 03:54:02+00:00 [Note] [Entrypoint]: Database files initialized
2024-02-05 03:54:02+00:00 [Note] [Entrypoint]: Starting temporary server
2024-02-05 03:54:02+00:00 [Note] [Entrypoint]: Waiting for server startup
2024-02-05  3:54:03 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 104
2024-02-05  3:54:03 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-02-05  3:54:03 0 [Note] InnoDB: Number of pools: 1
2024-02-05  3:54:03 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-02-05  3:54:03 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-02-05  3:54:03 0 [Note] InnoDB: Using Linux native AIO
2024-02-05  3:54:03 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-02-05  3:54:03 0 [Note] InnoDB: Completed initialization of buffer pool
2024-02-05  3:54:03 0 [Note] InnoDB: 128 rollback segments are active.
2024-02-05  3:54:03 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-02-05  3:54:03 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-02-05  3:54:03 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-02-05  3:54:03 0 [Note] InnoDB: 10.6.16 started; log sequence number 41354; transaction id 14
2024-02-05  3:54:03 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-02-05  3:54:03 0 [Warning] 'user' entry 'root@ea0824a566d5' ignored in --skip-name-resolve mode.
2024-02-05  3:54:03 0 [Warning] 'proxies_priv' entry '@% root@ea0824a566d5' ignored in --skip-name-resolve mode.
2024-02-05  3:54:03 0 [Note] mariadbd: ready for connections.
Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
2024-02-05 03:54:04+00:00 [Note] [Entrypoint]: Temporary server started.
2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)

2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: Stopping temporary server
2024-02-05  3:54:06 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
2024-02-05  3:54:06 0 [Note] InnoDB: FTS optimize thread exiting.
2024-02-05  3:54:06 0 [Note] InnoDB: Starting shutdown...
2024-02-05  3:54:06 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2024-02-05  3:54:06 0 [Note] InnoDB: Buffer pool(s) dump completed at 240205  3:54:06
2024-02-05  3:54:06 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-02-05  3:54:06 0 [Note] InnoDB: Shutdown completed; log sequence number 42664; transaction id 15
2024-02-05  3:54:06 0 [Note] mariadbd: Shutdown complete

2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: Temporary server stopped

2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.

2024-02-05  3:54:06 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 1
2024-02-05  3:54:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-02-05  3:54:07 0 [Note] InnoDB: Number of pools: 1
2024-02-05  3:54:07 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-02-05  3:54:07 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-02-05  3:54:07 0 [Note] InnoDB: Using Linux native AIO
2024-02-05  3:54:07 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-02-05  3:54:07 0 [Note] InnoDB: Completed initialization of buffer pool
2024-02-05  3:54:07 0 [Note] InnoDB: 128 rollback segments are active.
2024-02-05  3:54:07 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-02-05  3:54:07 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-02-05  3:54:07 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-02-05  3:54:07 0 [Note] InnoDB: 10.6.16 started; log sequence number 42664; transaction id 16
2024-02-05  3:54:07 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-02-05  3:54:07 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-02-05  3:54:07 0 [Note] InnoDB: Buffer pool(s) load completed at 240205  3:54:07
2024-02-05  3:54:07 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-02-05  3:54:07 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-02-05  3:54:07 0 [Note] Server socket created on IP: '::'.
2024-02-05  3:54:07 0 [Note] mariadbd: ready for connections.
Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2024-02-05  3:54:08 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'root' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:08 5 [Warning] Aborted connection 5 to db: 'ccnet_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:09 6 [Warning] Aborted connection 6 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:09 7 [Warning] Aborted connection 7 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:09 4 [Warning] Aborted connection 4 to db: 'unconnected' user: 'root' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:14 10 [Warning] Aborted connection 10 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)

有没有镜像是直接使用外面自建数据库的? 感觉这个docker中的数据库一方面性能可能存在问题,一方面操作起来还是太麻烦了。。要做数据库备份啥的都非常的不方便。。

数据库日志是正常的。
使用外面自建数据库可以参考这个手册:Seafile Community Installation - Seafile Admin Manual

我进了三个容器内部看时间,发现数据与缓存容器都是用的UTC时区时间,如果一旦在程序中取服务器当前时间,这肯定是有8小时时差的。
另外查了一下网络信息与数据库日志,感觉还是哪里不对劲,数据库的日志显示 172.22.0.4 是连接方还是被连接方? 172.22.0.4是seafile容器的IP

# docker network inspect seafile_seafile-net
[
    {
        "Name": "seafile_seafile-net",
        "Id": "4e1e50eb08c0ff967507eaa27d12c819e13e144cdc7f316383b23e919c78c6fd",
        "Created": "2024-02-05T11:53:58.76165762+08:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.22.0.0/16",
                    "Gateway": "172.22.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "1b30ed3cf04aae8799f85cce549ae3ed8504bbf6e2e36cd255b407431b6c40be": {
                "Name": "seafile-memcached",
                "EndpointID": "d0db00f1fe7d58aeae8d68832f6563c6244221cf492ed81d34c677d79e2620de",
                "MacAddress": "02:42:ac:16:00:03",
                "IPv4Address": "172.22.0.3/16",
                "IPv6Address": ""
            },
            "84a94a6d942f8705566c7cde92e830b9456a94eeb73c9bc28d2b69f3211c5414": {
                "Name": "seafile",
                "EndpointID": "24eff1cba2b2628d5856ccf2a8da2c379d19712760c1cb443bb0176c8f337fea",
                "MacAddress": "02:42:ac:16:00:04",
                "IPv4Address": "172.22.0.4/16",
                "IPv6Address": ""
            },
            "ea0824a566d507eab2a0cb7d735709385576fd3fc9ab15256a9e04f622702fc5": {
                "Name": "seafile-mysql",
                "EndpointID": "704e08a1e603cf70d81c8de6e0f3613b98820eb51c9e6bc140b7ba233d30fab1",
                "MacAddress": "02:42:ac:16:00:02",
                "IPv4Address": "172.22.0.2/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {
            "com.docker.compose.network": "seafile-net",
            "com.docker.compose.project": "seafile",
            "com.docker.compose.version": "2.24.5"
        }
    }
]
docker logs seafile-mysql
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.16+maria~ubu2004 started.
2024-02-05 03:54:01+00:00 [Note] [Entrypoint]: Initializing database files


PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following command:

'/usr/bin/mariadb-secure-installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at https://mariadb.com/kb

Please report any problems at https://mariadb.org/jira

The latest information about MariaDB is available at https://mariadb.org/.

Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

2024-02-05 03:54:02+00:00 [Note] [Entrypoint]: Database files initialized
2024-02-05 03:54:02+00:00 [Note] [Entrypoint]: Starting temporary server
2024-02-05 03:54:02+00:00 [Note] [Entrypoint]: Waiting for server startup
2024-02-05  3:54:03 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 104
2024-02-05  3:54:03 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-02-05  3:54:03 0 [Note] InnoDB: Number of pools: 1
2024-02-05  3:54:03 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-02-05  3:54:03 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-02-05  3:54:03 0 [Note] InnoDB: Using Linux native AIO
2024-02-05  3:54:03 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-02-05  3:54:03 0 [Note] InnoDB: Completed initialization of buffer pool
2024-02-05  3:54:03 0 [Note] InnoDB: 128 rollback segments are active.
2024-02-05  3:54:03 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-02-05  3:54:03 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-02-05  3:54:03 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-02-05  3:54:03 0 [Note] InnoDB: 10.6.16 started; log sequence number 41354; transaction id 14
2024-02-05  3:54:03 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-02-05  3:54:03 0 [Warning] 'user' entry 'root@ea0824a566d5' ignored in --skip-name-resolve mode.
2024-02-05  3:54:03 0 [Warning] 'proxies_priv' entry '@% root@ea0824a566d5' ignored in --skip-name-resolve mode.
2024-02-05  3:54:03 0 [Note] mariadbd: ready for connections.
Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
2024-02-05 03:54:04+00:00 [Note] [Entrypoint]: Temporary server started.
2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)

2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: Stopping temporary server
2024-02-05  3:54:06 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
2024-02-05  3:54:06 0 [Note] InnoDB: FTS optimize thread exiting.
2024-02-05  3:54:06 0 [Note] InnoDB: Starting shutdown...
2024-02-05  3:54:06 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2024-02-05  3:54:06 0 [Note] InnoDB: Buffer pool(s) dump completed at 240205  3:54:06
2024-02-05  3:54:06 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-02-05  3:54:06 0 [Note] InnoDB: Shutdown completed; log sequence number 42664; transaction id 15
2024-02-05  3:54:06 0 [Note] mariadbd: Shutdown complete

2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: Temporary server stopped

2024-02-05 03:54:06+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.

2024-02-05  3:54:06 0 [Note] Starting MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2004 source revision b83c379420a8846ae4b28768d3c81fa354cca056 as process 1
2024-02-05  3:54:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-02-05  3:54:07 0 [Note] InnoDB: Number of pools: 1
2024-02-05  3:54:07 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-02-05  3:54:07 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-02-05  3:54:07 0 [Note] InnoDB: Using Linux native AIO
2024-02-05  3:54:07 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2024-02-05  3:54:07 0 [Note] InnoDB: Completed initialization of buffer pool
2024-02-05  3:54:07 0 [Note] InnoDB: 128 rollback segments are active.
2024-02-05  3:54:07 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-02-05  3:54:07 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-02-05  3:54:07 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-02-05  3:54:07 0 [Note] InnoDB: 10.6.16 started; log sequence number 42664; transaction id 16
2024-02-05  3:54:07 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-02-05  3:54:07 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-02-05  3:54:07 0 [Note] InnoDB: Buffer pool(s) load completed at 240205  3:54:07
2024-02-05  3:54:07 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-02-05  3:54:07 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-02-05  3:54:07 0 [Note] Server socket created on IP: '::'.
2024-02-05  3:54:07 0 [Note] mariadbd: ready for connections.
Version: '10.6.16-MariaDB-1:10.6.16+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2024-02-05  3:54:08 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'root' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:08 5 [Warning] Aborted connection 5 to db: 'ccnet_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:09 6 [Warning] Aborted connection 6 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:09 7 [Warning] Aborted connection 7 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:09 4 [Warning] Aborted connection 4 to db: 'unconnected' user: 'root' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  3:54:14 10 [Warning] Aborted connection 10 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  5:54:15 30 [Warning] Aborted connection 30 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  5:54:15 31 [Warning] Aborted connection 31 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  5:54:15 32 [Warning] Aborted connection 32 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  5:54:15 33 [Warning] Aborted connection 33 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  5:54:15 48 [Warning] Aborted connection 48 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  6:54:14 50 [Warning] Aborted connection 50 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  6:54:15 66 [Warning] Aborted connection 66 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 67 [Warning] Aborted connection 67 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 68 [Warning] Aborted connection 68 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 84 [Warning] Aborted connection 84 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 85 [Warning] Aborted connection 85 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 86 [Warning] Aborted connection 86 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 87 [Warning] Aborted connection 87 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 102 [Warning] Aborted connection 102 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 103 [Warning] Aborted connection 103 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 69 [Warning] Aborted connection 69 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 105 [Warning] Aborted connection 105 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 104 [Warning] Aborted connection 104 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 120 [Warning] Aborted connection 120 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05  9:54:15 121 [Warning] Aborted connection 121 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 10:54:15 137 [Warning] Aborted connection 137 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 11:54:14 11 [Warning] Aborted connection 11 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 11:54:14 14 [Warning] Aborted connection 14 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 11:54:15 12 [Warning] Aborted connection 12 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 11:54:15 13 [Warning] Aborted connection 13 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 11:54:15 16 [Warning] Aborted connection 16 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 11:54:15 15 [Warning] Aborted connection 15 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 11:54:15 17 [Warning] Aborted connection 17 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 12:54:15 174 [Warning] Aborted connection 174 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 13:54:15 49 [Warning] Aborted connection 49 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 13:54:15 51 [Warning] Aborted connection 51 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 13:54:15 191 [Warning] Aborted connection 191 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 138 [Warning] Aborted connection 138 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 139 [Warning] Aborted connection 139 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 155 [Warning] Aborted connection 155 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 140 [Warning] Aborted connection 140 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 156 [Warning] Aborted connection 156 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 157 [Warning] Aborted connection 157 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 158 [Warning] Aborted connection 158 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 173 [Warning] Aborted connection 173 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 175 [Warning] Aborted connection 175 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 176 [Warning] Aborted connection 176 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 192 [Warning] Aborted connection 192 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 193 [Warning] Aborted connection 193 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 194 [Warning] Aborted connection 194 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 14:54:15 209 [Warning] Aborted connection 209 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 15:54:15 227 [Warning] Aborted connection 227 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 17:54:15 122 [Warning] Aborted connection 122 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 17:54:15 123 [Warning] Aborted connection 123 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 17:54:15 263 [Warning] Aborted connection 263 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 18:54:15 280 [Warning] Aborted connection 280 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 211 [Warning] Aborted connection 211 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 212 [Warning] Aborted connection 212 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 228 [Warning] Aborted connection 228 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 229 [Warning] Aborted connection 229 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 230 [Warning] Aborted connection 230 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 245 [Warning] Aborted connection 245 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 246 [Warning] Aborted connection 246 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 247 [Warning] Aborted connection 247 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 248 [Warning] Aborted connection 248 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 262 [Warning] Aborted connection 262 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 264 [Warning] Aborted connection 264 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 265 [Warning] Aborted connection 265 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 281 [Warning] Aborted connection 281 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 282 [Warning] Aborted connection 282 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 283 [Warning] Aborted connection 283 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 19:54:15 299 [Warning] Aborted connection 299 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 20:54:15 316 [Warning] Aborted connection 316 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 21:54:15 335 [Warning] Aborted connection 335 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 22:54:15 210 [Warning] Aborted connection 210 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got timeout reading communication packets)
2024-02-05 22:54:15 352 [Warning] Aborted connection 352 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-05 23:54:15 370 [Warning] Aborted connection 370 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 301 [Warning] Aborted connection 301 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 300 [Warning] Aborted connection 300 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 317 [Warning] Aborted connection 317 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 318 [Warning] Aborted connection 318 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 319 [Warning] Aborted connection 319 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 334 [Warning] Aborted connection 334 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 336 [Warning] Aborted connection 336 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 337 [Warning] Aborted connection 337 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 353 [Warning] Aborted connection 353 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 354 [Warning] Aborted connection 354 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 355 [Warning] Aborted connection 355 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 369 [Warning] Aborted connection 369 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 371 [Warning] Aborted connection 371 to db: 'seafile_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:14 372 [Warning] Aborted connection 372 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:15 298 [Warning] Aborted connection 298 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  0:54:15 387 [Warning] Aborted connection 387 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)
2024-02-06  1:54:15 405 [Warning] Aborted connection 405 to db: 'seahub_db' user: 'seafile' host: '172.22.0.4' (Got an error reading communication packets)

Mysql数据库支持哪些版本,支持5.7.33么,还是必须是MariaDB版本?
貌似还不能指定端口,默认得是3306才行

感觉要重新打包docke镜像才行,直接这样跑不起来了。。。
参考这个网址 docker部署seafile踩坑日记 - 哔哩哔哩 (bilibili.com)