介绍

一个支持多种存储的文件列表程序,使用 Gin 和 Solidjs。

创建配置文件目录
mkdir -p /dockerfile/alist
配置文件修改
/dockerfile/alist/config.json
{
  "force": false,
  "site_url": "https://liew.cn:5000",
  "cdn": "",
  "jwt_secret": "ve2KNIFktUJaAEqP",
  "token_expires_in": 48,
  "database": {
    "type": "sqlite3",
    "host": "",
    "port": 0,
    "user": "",
    "password": "",
    "name": "",
    "db_file": "data/data.db",
    "table_prefix": "x_",
    "ssl_mode": ""
  },
  "scheme": {
    "address": "0.0.0.0",
    "http_port": -1,
    "https_port": 5000,
    "force_https": true,
    "cert_file": "data/cert.crt",
    "key_file": "data/key.key",
    "unix_file": "",
    "unix_file_perm": ""
  },
  "temp_dir": "data/temp",
  "bleve_dir": "data/bleve",
  "log": {
    "enable": true,
    "name": "data/log/log.log",
    "max_size": 10,
    "max_backups": 5,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 0,
  "tls_insecure_skip_verify": true
}
运行容器
docker run -d --name alist \
--restart=always \
-v /dockerfile/alist:/opt/alist/data \
-v /etc/localtime:/etc/localtime:ro \
-p 5000:5000 \
-e PUID=0 \
-e PGID=0 \
-e UMASK=022 \
xhofe/alist:latest
查看账号密码密码
# 获得管理员信息
docker exec -it alist ./alist admin
最后修改:2023 年 08 月 09 日
如果觉得我的文章对你有用,请随意赞赏