Skip to content

Commit

Permalink
feat: expose HTTP tracker port
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Dec 10, 2022
1 parent 16a8c9b commit f315c1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Run using the pre-built public docker image:
export TORRUST_TRACKER_USER_UID=1000
docker run -it \
--user="$TORRUST_TRACKER_USER_UID" \
-p 6969:6969/udp -p 1212:1212 \
--publish 6969:6969/udp \
--publish 6969:6969/tcp \
--publish 1212:1212/tcp \
--volume "$(pwd)/storage":"/app/storage" \
josecelano/torrust-tracker
```
Expand Down Expand Up @@ -55,7 +57,8 @@ And finally, you can run the container:
```s
docker run \
--publish 6969:6969/udp \
--publish 1212:1212 \
--publish 6969:6969/tcp \
--publish 1212:1212/tcp \
--volume torrustracker/test-volume:/app/storage \
registry.hub.docker.com/josecelano/torrust-tracker:0.6.0
```
Expand All @@ -66,7 +69,8 @@ Detach from container logs when the container starts. By default, the command li
docker run \
--detach
--publish 6969:6969/udp \
--publish 1212:1212 \
--publish 6969:6969/tcp \
--publish 1212:1212/tcp \
--volume torrustracker/test-volume:/app/storage \
registry.hub.docker.com/josecelano/torrust-tracker:0.6.0
```
Expand All @@ -76,7 +80,8 @@ You should see something like this:
```s
$ docker run \ \
--publish 6969:6969/udp \
--publish 1212:1212 \
--publish 6969:6969/tcp \
--publish 1212:1212/tcp \
--volume torrustracker/test-volume:/app/storage \
registry.hub.docker.com/josecelano/torrust-tracker:0.6.0
[+] Running 2/2
Expand Down
3 changes: 2 additions & 1 deletion docker/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ TORRUST_TRACKER_USER_UID=${TORRUST_TRACKER_USER_UID:-1000}
docker run -it \
--user="$TORRUST_TRACKER_USER_UID" \
--publish 6969:6969/udp \
--publish 1212:1212 \
--publish 6969:6969/tcp \
--publish 1212:1212/tcp \
--volume "$(pwd)/storage":"/app/storage" \
torrust-tracker

0 comments on commit f315c1b

Please sign in to comment.