1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00

add bittorrent-tracker

This commit is contained in:
kev 2022-09-02 16:48:33 +08:00
parent b366bece6a
commit 3c977e5499
4 changed files with 47 additions and 0 deletions

@ -102,6 +102,7 @@ A collection of delicious docker recipes.
- [x] apacheds
- [x] aria2 :+1:
- [x] ariang :cn:
- [x] bittorrent-tracker
- [x] cadvisor
- [x] casperjs :+1:
- [x] freegeoip

@ -0,0 +1,13 @@
#
# Dockerfile for bittorrent-tracker
#
FROM node:lts-alpine
MAINTAINER EasyPi Software Foundation
RUN npm install -g bittorrent-tracker
EXPOSE 8000
ENTRYPOINT ["bittorrent-tracker"]
CMD ["--port", "8000"]

@ -0,0 +1,25 @@
bittorrent-tracker
==================
[BitTorrent tracker][1] is a web service which responds to requests from
BitTorrent clients. The requests include metrics from clients that help the
tracker keep overall statistics about the torrent. The response includes a peer
list that helps the client participate in the torrent swarm.
```bash
$ docker-compose up -d
$ curl http://127.0.0.1:8000/stats.json
{
"torrents": 0,
"activeTorrents": 0,
"peersAll": 0,
"peersSeederOnly": 0,
"peersLeecherOnly": 0,
"peersSeederAndLeecher": 0,
"peersIPv4": 0,
"peersIPv6": 0,
"clients": {}
}
```
[1]: https://github.com/webtorrent/bittorrent-tracker

@ -0,0 +1,8 @@
version: "3.8"
services:
bittorrent-tracker:
image: vimagick/bittorrent-tracker
init: true
ports:
- "8000:8000"
restart: unless-stopped