diff --git a/Dockerfile.arm b/Dockerfile.arm index bc9808e..2907a7c 100644 --- a/Dockerfile.arm +++ b/Dockerfile.arm @@ -38,7 +38,7 @@ RUN curl -L "https://storage.googleapis.com/golang/go1.9.1.linux-armv6l.tar.gz" && unset GOROOT && unset GOPATH # goreman setup -RUN echo "web: gosu aria /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu aria /usr/bin/aria2c --conf-path=/home/aria/.aria2/aria2.conf" /data/downloads/*.torrent > Procfile +RUN echo "web: gosu aria /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu aria /usr/bin/aria2c --conf-path=/home/aria/.aria2/aria2.conf /data/downloads/*.torrent" > Procfile # aria2 downloads directory VOLUME /data/downloads diff --git a/README.md b/README.md index a160020..e3e1cb0 100644 --- a/README.md +++ b/README.md @@ -68,17 +68,22 @@ Build it (may take several hours due to the aria2 compilation process. Don't pan docker build -f Dockerfile.arm -t yourname/webui-aria2 . ``` Prepare the host volume: -This image required few file to be mounted in the container's `/data` folder. +This image required few file to be mounted in the container. ``` -.aria2/session.txt (empty file) -.aria2/aria2.log (empty file) -.aria2/aria2.conf (aria2 configuration file, not webui-aria2 conf) must contains at least `enable-rpc=true` and `rpc-listen-all=true` -./downloads/ (where the downloaded files goes) +/home/aria/aria2/session.txt (empty file) +/home/aria/aria2/aria2.log (empty file) +/home/aria/aria2/aria2.conf (aria2 configuration file, not webui-aria2 conf) must contains at least `enable-rpc=true` and `rpc-listen-all=true` +/data/downloads/ (where the downloaded files goes) ``` Run it ``` -docker run --restart=always -d -v /home//data/aria2:/data -p 6800:6800 -p 9100:8080 --name="webui-aria2" yourname/webui-aria2 +docker run --restart=always \ + -v /home//data/aria2/downloads:/data/downloads \ + -v /home//data/aria2/.aria2:/home/aria/.aria2 \ + -p 6800:6800 -p 9100:8080 \ + --name="webui-aria2" \ + -d yourname/webui-aria2 ``` Support