docker安装aira2 pro与ariang以及alist推送下载的配置

Docker一键安装

aira2-pro:

docker run -d --name aria2 --restart unless-stopped --log-opt max-size=1m -e PUID=$UID -e PGID=$GID -e UMASK_SET=022 -e RPC_SECRET=12345678 -e RPC_PORT=6800 -e LISTEN_PORT=6888 -p 16800:6800 -p 16888:6888 -p 16888:6888/udp -v /mnt/c/Docker/aria2/config:/config -v /mnt/c/Docker/downloads:/downloads  p3terx/aria2-pro

ariang:

docker run -d     --name ariang     --log-opt max-size=1m     --restart unless-stopped     -p 6880:6880     p3terx/ariang

alist:

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

或者使用 Docker Compose 文件一键安装

version: '3'

services:
  aria2:
    image: p3terx/aria2-pro
    container_name: aria2
    restart: unless-stopped
    logging:
      options:
        max-size: 1m
    environment:
      - PUID=$UID
      - PGID=$GID
      - UMASK_SET=022
      - RPC_SECRET=12345678
      - RPC_PORT=6800
      - LISTEN_PORT=6888
    ports:
      - "16800:6800"
      - "16888:6888"
      - "16888:6888/udp"
    volumes:
      - /mnt/c/Docker/aria2/config:/config
      - /mnt/c/Docker/downloads:/downloads

  ariang:
    image: p3terx/ariang
    container_name: ariang
    restart: unless-stopped
    logging:
      options:
        max-size: 1m
    ports:
      - "6880:6880"

  alist:
    image: xhofe/alist:latest
    container_name: alist
    restart: always
    volumes:
      - /mnt/c/Docker/alist:/opt/alist/data
    ports:
      - "5244:5244"
    environment:
      - PUID=0
      - PGID=0
      - UMASK=022


保存上述内容为 docker-compose.yml 文件,然后使用以下命令启动这两个服务:

docker-compose up -d

使用教程

使用Ip:6880端口访问ariang

image-20231214170554417

进入下面设置,ip填本机ip,端口写16800,密钥是上面docker配置写的12345678( - RPC_SECRET=12345678),刷新以下就会显示已连接

ip:5244访问alist

点右下角的本地设置

image-20231214170716578

在这里同样填写密钥和ip

image-20231214170732624

勾选某个资源后,选择发送到Aria2即可

image-20231214170800648

posted @ 2023-12-14 20:55  scottyzh  阅读(1115)  评论(0编辑  收藏  举报