mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-24 07:48:38 +00:00
add bittorrent-tracker
This commit is contained in:
parent
b366bece6a
commit
3c977e5499
@ -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
|
||||
|
13
bittorrent-tracker/Dockerfile
Normal file
13
bittorrent-tracker/Dockerfile
Normal file
@ -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"]
|
25
bittorrent-tracker/README.md
Normal file
25
bittorrent-tracker/README.md
Normal file
@ -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
|
8
bittorrent-tracker/docker-compose.yml
Normal file
8
bittorrent-tracker/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
bittorrent-tracker:
|
||||
image: vimagick/bittorrent-tracker
|
||||
init: true
|
||||
ports:
|
||||
- "8000:8000"
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user