diff --git a/bittorrent-tracker/Dockerfile b/bittorrent-tracker/Dockerfile index 5e08d85..d03689d 100644 --- a/bittorrent-tracker/Dockerfile +++ b/bittorrent-tracker/Dockerfile @@ -7,7 +7,7 @@ MAINTAINER EasyPi Software Foundation RUN npm install -g bittorrent-tracker -EXPOSE 8000 +EXPOSE 8000/tcp 8000/udp ENTRYPOINT ["bittorrent-tracker"] CMD ["--port", "8000"] diff --git a/bittorrent-tracker/README.md b/bittorrent-tracker/README.md index b40f496..cf65522 100644 --- a/bittorrent-tracker/README.md +++ b/bittorrent-tracker/README.md @@ -8,6 +8,12 @@ list that helps the client participate in the torrent swarm. ```bash $ docker-compose up -d + +$ docker-compose logs +http server listening on 8000 +udp server listening on 8000 +ws server listening on 8000 + $ curl http://127.0.0.1:8000/stats.json { "torrents": 0, diff --git a/bittorrent-tracker/docker-compose.yml b/bittorrent-tracker/docker-compose.yml index ab495a8..02bfdd5 100644 --- a/bittorrent-tracker/docker-compose.yml +++ b/bittorrent-tracker/docker-compose.yml @@ -4,5 +4,6 @@ services: image: vimagick/bittorrent-tracker init: true ports: - - "8000:8000" + - "8000:8000/tcp" + - "8000:8000/udp" restart: unless-stopped