Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker create/start/stop/remove scripts #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions create_docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

docker run -idt \
-p 80:80 -p 45566:45566 -p 9527:9527/udp \
--dns 8.8.8.8 \
--name docktorrent \
-v /data-store:/rtorrent \
-e UPLOAD_RATE=1024 \
docktorrent
16 changes: 16 additions & 0 deletions create_safe_docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# We should NEVER expose 80 port to the internet (unless its https)
# We can open 127.0.0.1:80 from remote machine through ssh:
# ssh docktorrent_host -N -L 8000:127.0.0.1:80
# then open 127.0.0.1:8000 in your browser on remote machine
# AUTH_OFF=all because we use ssh and http binded to 127.0.0.1

docker run -idt \
-p 127.0.0.1:80:80 -p 45566:45566 -p 9527:9527/udp \
-e AUTH_OFF=all \
--dns 8.8.8.8 \
--name docktorrent \
-v /data-store:/rtorrent \
-e UPLOAD_RATE=1024 \
docktorrent
4 changes: 4 additions & 0 deletions remove_docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

docker rm -f docktorrent

3 changes: 3 additions & 0 deletions start_docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker start docktorrent
3 changes: 3 additions & 0 deletions stop_docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker stop docktorrent -t 120