update bittorrent-tracker

This commit is contained in:
kevin 2022-10-18 19:42:59 +08:00
parent 45f3756f61
commit 758f24f6c7
3 changed files with 9 additions and 2 deletions

View File

@ -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"]

View File

@ -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,

View File

@ -4,5 +4,6 @@ services:
image: vimagick/bittorrent-tracker
init: true
ports:
- "8000:8000"
- "8000:8000/tcp"
- "8000:8000/udp"
restart: unless-stopped