
说明Alist是一个存储管理项目。代码https://github.com/AlistGo/alist支持配置文件挂载可自定义alist配置。支持数据持久化建议使用最新版本docker准备文件下载文件https://gitcode.com/zhudev2026/alist-deploy快速部署若没有自定义配置的需求可在全新环境快速部署dockercompose up-d查询查询部署状态roottest:/data# docker compose ps -aNAME IMAGE COMMAND SERVICE CREATED STATUS PORTS alist swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/alistgo/alist:v3.62.0/entrypoint.shalist4seconds ago Up4seconds0.0.0.0:5244-5244/tcp,[::]:5244-5244/tcp,5245/tcp查询自动分配的密码roottest:/data# docker logs alistINFO[2026-07-20 02:08:15]reading config file: data/config.json INFO[2026-07-20 02:08:15]configfilenot exists, creating default configfileINFO[2026-07-20 02:08:15]load config fromenvwith prefix: INFO[2026-07-20 02:08:15]init logrus... INFO[2026-07-20 02:08:15]Successfully created the admin user and the initial password is: wrwiNx53 WARN[2026-07-20 02:08:15]init tool Transmission failed: failed get transmission version: cant get session values: session-get rpc method failed: failed to execute HTTP request: Posthttp://localhost:9091/transmission/rpc:dial tcp[::1]:9091: connect: connection refused INFO[2026-07-20 02:08:15]init tool115Cloud success: ok WARN[2026-07-20 02:08:15]init tool aria2 failed: failed get aria2 version: Posthttp://localhost:6800/jsonrpc:dial tcp[::1]:6800: connect: connection refused INFO[2026-07-20 02:08:15]init tool GuangYaPan success: ok INFO[2026-07-20 02:08:15]init tool SimpleHttp success: ok INFO[2026-07-20 02:08:15]init tool PikPak success: ok WARN[2026-07-20 02:08:15]init tool qBittorrent failed: Posthttp://localhost:8080/api/v2/auth/login:dial tcp[::1]:8080: connect: connection refused INFO[2026-07-20 02:08:15]init tool Thunder success: ok INFO[2026-07-20 02:08:15]start HTTP server 0.0.0.0:5244访问浏览器访问IP:5244默认账户admin密码是上述日志中的wrwiNx53首次访问应点击管理配置存储对接到alist自定义配置如需自定义配置参考以下说明compose.yaml是部署文件说明如下services: alist:# 容器镜像来自https://github.com/AlistGo/alist/pkgs/container/alist 务必选择准确版本号image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/alistgo/alist:v3.62.0 container_name: alist volumes:# 数据持久化-alist_data:/opt/alist/data# 挂载本地config.json至容器指定路径- ./config.json:/opt/alist/data/config.json ports: -5244:5244environment: -PUID0-PGID0-UMASK022 restart: unless-stopped# 指定自定义网络networks: alist-net: volumes: alist_data: name: alist_data# 定义自定义网络networks: alist-net: name: alist-netconfig.json是alist的配置文件说明参考https://alistgo.com/config/configuration.html不做解释。{force:false,site_url:,cdn:,jwt_secret:YRaOORpTQDoWMQn5,token_expires_in:48,database:{type:sqlite3,host:,port:0,user:,password:,name:,db_file:data/data.db,table_prefix:x_,ssl_mode:,dsn:},meilisearch:{host:http://localhost:7700,api_key:,index_prefix:},scheme:{address:0.0.0.0,http_port:5244,https_port:-1,force_https:false,cert_file:,key_file:,unix_file:,unix_file_perm:,enable_h2c:false},temp_dir:data/temp,bleve_dir:data/bleve,dist_dir:,log:{enable:true,name:data/log/log.log,max_size:50,max_backups:30,max_age:28,compress:false},delayed_start:0,max_connections:0,max_concurrency:64,tls_insecure_skip_verify:false,tasks:{download:{workers:5,max_retry:1,task_persistant:false},transfer:{workers:5,max_retry:2,task_persistant:false},upload:{workers:5,max_retry:0,task_persistant:false},copy:{workers:5,max_retry:2,task_persistant:false},decompress:{workers:5,max_retry:2,task_persistant:false},decompress_upload:{workers:5,max_retry:2,task_persistant:false},s3_transition:{workers:5,max_retry:2,task_persistant:false},allow_retry_canceled:false},cors:{allow_origins:[*],allow_methods:[*],allow_headers:[*]},s3:{enable:false,port:5246,ssl:false},ftp:{enable:false,listen::5221,find_pasv_port_attempts:50,active_transfer_port_non_20:false,idle_timeout:900,connection_timeout:30,disable_active_mode:false,default_transfer_binary:false,enable_active_conn_ip_check:true,enable_pasv_conn_ip_check:true},sftp:{enable:false,listen::5222},mcp:{enable:false,port:5248},last_launched_version:v3.62.0}