Sign inSign up

wiserain/aria2

By wiserain

Updated over 4 years ago

Docker image for running aria2 with webui

Image
1

9.8K

wiserain/aria2 repository overview

docker-aria2

This docker image is with

Usage

version: '3'

services:
    container_name: aria2
    image: wiserain/aria2:latest
    restart: always
    network_mode: "bridge"
    ports:
      - ${SERVICE_PORT}:80
    volumes:
      - ${DOCKER_ROOT}/aria2/config:/config
      - ${DOWNLOAD_ROOT}:/download
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=Asia/Seoul
      - WEBUI=webui-aria2
      - RPC_SECRET=${YOUR_RPC_SECRET}
      - USER_OPTS=${ADDITIONAL_ARGS}

Create and run your container as above, and then it will run

aria2c \
    --conf-path=/config/aria2.conf \
    --disable-ipv6=true \
    --enable-rpc \
    --rpc-listen-all \
    --rpc-allow-origin-all \
    --rpc-listen-port=6800 \
    -d /download \
    ${RPC_SECRET:+ --rpc-secret=$RPC_SECRET} \
    ${USER_OPTS[@]}

You can specify your rpc secret and additional command line arguments compaitible to aria2c EXCEPT fixed ones. Now following services are available on

SERVICEURL
webuihttp://${DOCKER_HOST_IP}:${SERVICE_PORT}/aria2
jsonrpchttp://${DOCKER_HOST_IP}:${SERVICE_PORT}/aria2/jsonrpc
xmlrpchttp://${DOCKER_HOST_IP}:${SERVICE_PORT}/aria2/xmlrpc

Environment variables

ENVDescriptionDefault
PUID / PGIDuid and gid for running an app911 / 911
TZtimezone
BASE_URLlocation path with a preceding slash/aria2
WEBUIeither of ariang or webui-aria2ariang

Tag summary

Content type

Image

Digest

Size

16.4 MB

Last updated

over 4 years ago

docker pull wiserain/aria2