This Dockerfile build an image for aria2 with AriaNg frontends.
docker run -d --name aria2-webui \
-p 80:80 -p 6800:6800 \
onisuly/aria2-with-webui
docker run -d --name aria2-webui \
-p 80:80 -p 6800:6800 \
-e PGID=1000 \
-e PUID=1000 \
-e SECRET=your_password \
-e SECURE=true \
-e CERTIFICATE=/server/path/to/your_cert \
-e PRIVATEKEY=/server/path/to/your_key \
-v /path/to/persist/data:/data \
onisuly/aria2-with-webui
Which will make the Aria2 client accessible over HTTP from port 6800, with the WebUI being accessible from 80. If you define SECRET, this token can be used to communicate with the Aria2 daemon. Define SECURE as true and pass the cert and private key, to enable aria2 RPC transport encrypted by SSL/TLS.
If you want to use your aria2 configuration file, you need to mount the /conf folder to a volume.
version: "3"
services:
aria2:
container_name: aria2
image: onisuly/aria2-with-webui
restart: always
ports:
- "6800:6800"
- "80:80"
environment:
- PGID=${PGID:-1000}
- PUID=${PUID:-1000}
- SECRET=your_password
- SEEDRATIO=2
- SEEDTIME=0
- SECURE=true
- CERTIFICATE=/server/path/to/your_cert
- PRIVATEKEY=/server/path/to/your_key
volumes:
- /path/to/persist/data:/data
This docker image is based on abcminiuser & xujinkai's docker image.