Docker image for running aria2 with webui
9.8K
This docker image is with
PUID and PGIDversion: '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
| 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 |
| 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 |
Content type
Image
Digest
Size
16.4 MB
Last updated
over 4 years ago
docker pull wiserain/aria2