# 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 ```