Docker Website (17) Alist

Alist

1 Introduction

Similar to OneIndex, OlaIndex, Alist is a directory program.

Compared with other similar products, Alist has the following advantages:

  • Simple to use

AList has been designed from the ground up to be easy to install and available on all platforms.

  • Various storage

AList supports multiple storage providers, including local storage, Alibaba Cloud Disk, OneDrive, Google Drive, etc., and is easy to expand.

  • Support WebDAV

AList supports all WebDAV storage, a standard for accessing files.

  • dark mode

Freely switch between light and dark modes

  • protected routing

Add password protection and authentication for specific paths

  • File preview

Support video, audio, document, PDF, image preview, etc., even support ipa installation

  • Download package

Use the browser's stream api to support packaged downloads without using a server

  • More new features

Includes text editor, README/HTML rendering, permalinks to files, Cloudflare Workers proxy, and more

2. Installation

2.1, release version

A key installation:

Bash
1
docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe /alist:latest

Using Docker-Compose:

yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
version: '3.3'
services:
     alist:
         restart: always
         volumes:
             - '/etc/alist:/opt/alist/data'
         ports:
             -'5244:5244'
         environment:
             -PUID=0
             - PGID=0
             - UMASK=022
         container_name: alist
         image: 'xhofe/alist:latest'

If you need to pre-install Aria2, you can use:

For more information about this image, please refer to

https://hub.docker.com/r/xhofe/alist-aria2

If you use a proxy such as v2rayA to access Google Drive, you need to add --net=host to use the host network, for example:

Bash
1
docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --net=host --name ="alist" xhofe/alist:latest

2.2, development version

Note:
For amd64/arm64 only. Not recommended, this may not work correctly.

A key installation:

Bash
1
docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe /alist:main

Using Docker-Compose:

yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
version: '3.3'
services:
     alist:
         restart: always
         volumes:
             - '/etc/alist:/opt/alist/data'
         ports:
             -'5244:5244'
         environment:
             -PUID=0
             - PGID=0
             - UMASK=022
         container_name: alist
         image: 'xhofe/alist:main'

Other parameters are the same as the release version.

3. Use

Reverse proxy 127.0.0.1:5244, you can access.

After startup, you need to view the default password:

Bash
1
docker exec -it alist ./alist admin

After obtaining the password, you can access

https://your.alist.website/@login

log in page.

As I write this, I remember the first time I did it, because I didn’t know that I could see “login” when I scrolled down to the bottom, and I spent a long time looking for where the login page is XD

4. Avoid pits

In the Docker environment, access to 127.0.0.1 is the container, not the host, so if Aria2 runs on 127.0.0.1:6800, and the network segment used by Docker is 172.17.0.1/24, then Aria2 should be The address is set to 172.17.0.1:6800.

5. Experience

After the test, I think the user experience is much better than programs such as Oneindex (old antique, almost unusable), Olaindex (good-looking, but not very friendly configuration), which is reflected in the following aspects:

  1. Can be mounted in a subdirectory

I use /OneDrive as the root directory of all OneDrive accounts, so it can be accessed through /OneDrive/1 without putting everything in the root directory.

  1. Many types are supported

Alist supports so many storage types that I don't even have time to explore them all...

  1. Native support for Aria2
  2. Easily copy and move across storage policies
  3. Automatically refresh the token

I think this is the most important point. If you don’t visit Olaindex for a period of time, the visit will become 500. After looking at it, you will find that the Refresh_Token has expired. And Alist will automatically refresh every 2 hours, no need to manually refresh.

Author
Hsukqi Lee
Posted on

2023-05-21

Edited on

2023-05-21

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
None yet