Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
/ docker-aria2 Public archive

Docker image for running aria2 with webui

Notifications You must be signed in to change notification settings

by275/docker-aria2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-aria2

This docker image is with

Usage

version: '3'

services:
    container_name: aria2
    image: ghcr.io/by275/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

SERVICE URL
webui http://${DOCKER_HOST_IP}:${SERVICE_PORT}/aria2
jsonrpc http://${DOCKER_HOST_IP}:${SERVICE_PORT}/aria2/jsonrpc
xmlrpc http://${DOCKER_HOST_IP}:${SERVICE_PORT}/aria2/xmlrpc

Environment variables

ENV Description Default
PUID / PGID uid and gid for running an app 911 / 911
TZ timezone
BASE_URL location path with a preceding slash /aria2
WEBUI either of ariang or webui-aria2 ariang

About

Docker image for running aria2 with webui

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published