代码拉取完成,页面将自动刷新
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。