You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
647 B
Markdown

# ALIST 安装
## 配置文件
创建路径
```shell
mkdir -p /usr/local/alist/data
```
## COMPOSE 文件
```shell
cat > /usr/local/alist/docker-compose.yml <<'EOF'
version: '3'
services:
alist:
image: 'xhofe/alist:latest'
container_name: alist
volumes:
- './data:/opt/alist/data'
ports:
- 9006:5244
environment:
- PUID=0
- PGID=0
- UMASK=022
restart: unless-stopped
EOF
```
## 启动
```shell
cd /usr/local/alist/ && docker-compose up -d
```
## 启动或重置密码
```shell
docker exec -it alist ./alist admin random
```