Skip to content

Commit f315c1b

Browse files
committed
feat: expose HTTP tracker port
1 parent 16a8c9b commit f315c1b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

docker/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ Run using the pre-built public docker image:
2222
export TORRUST_TRACKER_USER_UID=1000
2323
docker run -it \
2424
--user="$TORRUST_TRACKER_USER_UID" \
25-
-p 6969:6969/udp -p 1212:1212 \
25+
--publish 6969:6969/udp \
26+
--publish 6969:6969/tcp \
27+
--publish 1212:1212/tcp \
2628
--volume "$(pwd)/storage":"/app/storage" \
2729
josecelano/torrust-tracker
2830
```
@@ -55,7 +57,8 @@ And finally, you can run the container:
5557
```s
5658
docker run \
5759
--publish 6969:6969/udp \
58-
--publish 1212:1212 \
60+
--publish 6969:6969/tcp \
61+
--publish 1212:1212/tcp \
5962
--volume torrustracker/test-volume:/app/storage \
6063
registry.hub.docker.com/josecelano/torrust-tracker:0.6.0
6164
```
@@ -66,7 +69,8 @@ Detach from container logs when the container starts. By default, the command li
6669
docker run \
6770
--detach
6871
--publish 6969:6969/udp \
69-
--publish 1212:1212 \
72+
--publish 6969:6969/tcp \
73+
--publish 1212:1212/tcp \
7074
--volume torrustracker/test-volume:/app/storage \
7175
registry.hub.docker.com/josecelano/torrust-tracker:0.6.0
7276
```
@@ -76,7 +80,8 @@ You should see something like this:
7680
```s
7781
$ docker run \ \
7882
--publish 6969:6969/udp \
79-
--publish 1212:1212 \
83+
--publish 6969:6969/tcp \
84+
--publish 1212:1212/tcp \
8085
--volume torrustracker/test-volume:/app/storage \
8186
registry.hub.docker.com/josecelano/torrust-tracker:0.6.0
8287
[+] Running 2/2

docker/bin/run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ TORRUST_TRACKER_USER_UID=${TORRUST_TRACKER_USER_UID:-1000}
55
docker run -it \
66
--user="$TORRUST_TRACKER_USER_UID" \
77
--publish 6969:6969/udp \
8-
--publish 1212:1212 \
8+
--publish 6969:6969/tcp \
9+
--publish 1212:1212/tcp \
910
--volume "$(pwd)/storage":"/app/storage" \
1011
torrust-tracker

0 commit comments

Comments
 (0)