mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 09:16:05 +03:00
parent
88a91e0769
commit
a8b6a40f13
3 changed files with 6 additions and 5 deletions
2
dist/docker/Dockerfile
vendored
2
dist/docker/Dockerfile
vendored
|
@ -32,6 +32,6 @@ ENV WEBUI_PORT="8080"
|
||||||
|
|
||||||
EXPOSE 6881 6881/udp 8080
|
EXPOSE 6881 6881/udp 8080
|
||||||
|
|
||||||
VOLUME /config /downloads
|
VOLUME /config /data /downloads
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
7
dist/docker/Readme.md
vendored
7
dist/docker/Readme.md
vendored
|
@ -39,10 +39,11 @@ there is one important variable to run the container:
|
||||||
|
|
||||||
#### Volumes
|
#### Volumes
|
||||||
|
|
||||||
there are two main locations:
|
there are three main locations:
|
||||||
|
|
||||||
* `downloads` contains the files downloaded by qBittorrent
|
|
||||||
* `config` contains qBittorrent configurations
|
* `config` contains qBittorrent configurations
|
||||||
|
* `data` contains qBittorrent application data
|
||||||
|
* `downloads` contains the files downloaded by qBittorrent
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run give.example.org/of/your/container:v0.2.1 parameters
|
docker run give.example.org/of/your/container:v0.2.1 parameters
|
||||||
|
@ -57,7 +58,7 @@ on the port `8080` the webinterface is run
|
||||||
To start the the docker image simply run
|
To start the the docker image simply run
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run --env LEGAL=accept -p 8080:8080 -v /your/path/config:/config -v /your/path/download:/downloads --name qBittorrent qbittorrent-nox:4.2.0
|
docker run --env LEGAL=accept -p 8080:8080 -v /your/path/config:/config -v /your/path/data:/data -v /your/path/download:/downloads --name qBittorrent qbittorrent-nox:4.2.0
|
||||||
```
|
```
|
||||||
|
|
||||||
to stop the container
|
to stop the container
|
||||||
|
|
2
dist/docker/entrypoint.sh
vendored
2
dist/docker/entrypoint.sh
vendored
|
@ -18,4 +18,4 @@ else
|
||||||
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' /config/qBittorrent/qBittorrent.conf
|
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' /config/qBittorrent/qBittorrent.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/config" qbittorrent-nox --webui-port=$WEBUI_PORT
|
HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/data" qbittorrent-nox --webui-port=$WEBUI_PORT
|
||||||
|
|
Loading…
Reference in a new issue