mirror of https://github.com/vimagick/dockerfiles
update bittorrent-tracker
This commit is contained in:
parent
45f3756f61
commit
758f24f6c7
|
@ -7,7 +7,7 @@ MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN npm install -g bittorrent-tracker
|
RUN npm install -g bittorrent-tracker
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000/tcp 8000/udp
|
||||||
|
|
||||||
ENTRYPOINT ["bittorrent-tracker"]
|
ENTRYPOINT ["bittorrent-tracker"]
|
||||||
CMD ["--port", "8000"]
|
CMD ["--port", "8000"]
|
||||||
|
|
|
@ -8,6 +8,12 @@ list that helps the client participate in the torrent swarm.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose up -d
|
$ 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
|
$ curl http://127.0.0.1:8000/stats.json
|
||||||
{
|
{
|
||||||
"torrents": 0,
|
"torrents": 0,
|
||||||
|
|
|
@ -4,5 +4,6 @@ services:
|
||||||
image: vimagick/bittorrent-tracker
|
image: vimagick/bittorrent-tracker
|
||||||
init: true
|
init: true
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000/tcp"
|
||||||
|
- "8000:8000/udp"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Reference in New Issue