Skip to content

Commit

Permalink
New Docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
kelson42 committed Feb 26, 2022
1 parent 6b5730d commit 3455ede
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bittorrent-superseeder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ Refers to https://hub.docker.com/r/linuxserver/qbittorrent

Launch companion
----------------

```
docker run --network="host" --name=qbittorrent-zim-superseeder openzim/qbittorrent-zim-superseeder
```
1 change: 1 addition & 0 deletions bittorrent-superseeder/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ printf "
service cron start && crontab /etc/crontab

echo "Listening to cron logs..."
sleep 2
tail -f /var/log/sync_superseeder.log
2 changes: 1 addition & 1 deletion bittorrent-superseeder/bin/sync_superseeder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
FEED_URL="https://library.kiwix.org/catalog/search?count=20"
CURL="curl -s"
QBT="qbt"
QBT_CREDENTIALS="--username admin --password adminadmin --url http://localhost:8080"
QBT_CREDENTIALS="--username admin --password adminadmin --url http://qbittorrent:8080"

ONLINE_ZIM_URLS="/dev/shm/online_zim_urls.tsv"
ONLINE_ZIM_PATHS="/dev/shm/online_zim_paths.tsv"
Expand Down
22 changes: 22 additions & 0 deletions bittorrent-superseeder/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.5'
services:

qbittorrent:
image: linuxserver/qbittorrent:4.4.1
container_name: qbittorrent
volumes:
- "/tmp/downloads:/downloads"
ports:
- "6881:6881/udp"
- "6881:6881/tcp"
- "8080:8080/tcp"
restart: always

qbittorrent-zim-superseeder:
image: openzim/qbittorrent-zim-superseeder
container_name: qbittorrent-zim-superseeder
restart: always

networks:
default:
name: qbittorrent-zim-superseeder

0 comments on commit 3455ede

Please sign in to comment.