$ docker-compose up
Starting dhtaria2
Starting redis
Starting mongo
Starting dhtbay
Attaching to mongo, redis, dhtaria2, dhtbay
mongo | 2018-10-23T08:18:20.726+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=65c2c1d6df88
mongo | 2018-10-23T08:18:20.727+0000 I CONTROL [initandlisten] db version v3.0.15
mongo | 2018-10-23T08:18:20.727+0000 I CONTROL [initandlisten] git version: b8ff507269c382bc100fc52f75f48d54cd42ec3b
mongo | 2018-10-23T08:18:20.727+0000 I CONTROL [initandlisten] build info: Linux ip-10-166-66-3 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 BOOST_LIB_VERSION=1_49
mongo | 2018-10-23T08:18:20.727+0000 I CONTROL [initandlisten] allocator: tcmalloc
mongo | 2018-10-23T08:18:20.727+0000 I CONTROL [initandlisten] options: {}
mongo | 2018-10-23T08:18:20.739+0000 I JOURNAL [initandlisten] journal dir=/data/db/journal
mongo | 2018-10-23T08:18:20.739+0000 I JOURNAL [initandlisten] recover : no journal files present, no recovery needed
mongo | 2018-10-23T08:18:21.035+0000 I JOURNAL [durability] Durability thread started
mongo | 2018-10-23T08:18:21.035+0000 I JOURNAL [journal writer] Journal writer thread started
redis | 1:C 23 Oct 08:18:21.617 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis | _._
redis | _.-``__ ''-._
redis | _.-`` `. `_. ''-._ Redis 3.2.12 (00000000/0) 64 bit
mongo | 2018-10-23T08:18:21.168+0000 I NETWORK [initandlisten] waiting for connections on port 27017
redis | .-`` .-```. ```\/ _.,_ ''-._
dhtaria2 |
dhtaria2 | 10/23 08:18:22 [WARN] Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set. This is insecure. It is extremely recommended to specify --rpc-secret with the adequate secrecy or now deprecated --rpc-user and --rpc-passwd.
dhtaria2 |
redis | ( ' , .-` | `, ) Running in standalone mode
redis | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
dhtaria2 | 10/23 08:18:22 [NOTICE] IPv4 RPC: listening on TCP port 6800
redis | | `-._ `._ / _.-' | PID: 1
dhtaria2 |
redis | `-._ `-._ `-./ _.-' _.-'
dhtaria2 | 10/23 08:18:22 [NOTICE] IPv6 RPC: listening on TCP port 6800
redis | |`-._`-._ `-.__.-' _.-'_.-'|
redis | | `-._`-._ _.-'_.-' | http://redis.io
redis | `-._ `-._`-.__.-'_.-' _.-'
redis | |`-._`-._ `-.__.-' _.-'_.-'|
redis | | `-._`-._ _.-'_.-' |
redis | `-._ `-._`-.__.-'_.-' _.-'
redis | `-._ `-.__.-' _.-'
redis | `-._ _.-'
redis | `-.__.-'
redis |
redis | 1:M 23 Oct 08:18:21.621 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis | 1:M 23 Oct 08:18:21.622 # Server started, Redis version 3.2.12
redis | 1:M 23 Oct 08:18:21.622 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis | 1:M 23 Oct 08:18:21.622 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis | 1:M 23 Oct 08:18:21.622 * DB loaded from disk: 0.000 seconds
redis | 1:M 23 Oct 08:18:21.622 * The server is now ready to accept connections on port 6379
dhtbay | 2018-10-23T08:18:24: PM2 log: Launching in no daemon mode
dhtbay | 2018-10-23T08:18:24: PM2 log: App [loadDHT:0] starting in -fork mode-
dhtbay | 2018-10-23T08:18:24: PM2 log: App [loadTorrent:1] starting in -fork mode-
dhtbay | 2018-10-23T08:18:24: PM2 log: App [loadDHT:0] online
dhtbay | 2018-10-23T08:18:24: PM2 log: App [loadTorrent:1] online
dhtbay | 2018-10-23T08:18:24: PM2 log: App [categorize:2] starting in -fork mode-
dhtbay | 2018-10-23T08:18:24: PM2 log: App [crawlDHT:3] starting in -fork mode-
dhtbay | 2018-10-23T08:18:24: PM2 log: App [categorize:2] online
dhtbay | 2018-10-23T08:18:24: PM2 log: App [crawlDHT:3] online
dhtbay | {"name":"crawler","hostname":"75b1ab7bb2f3","pid":33,"level":30,"msg":"now listening","time":"2018-10-23T08:18:25.675Z","v":0}
dhtbay | {"name":"crawler","hostname":"75b1ab7bb2f3","pid":33,"level":30,"address":"0.0.0.0","family":"IPv4","port":6881,"msg":"","time":"2018-10-23T08:18:25.681Z","v":0}
dhtbay | {"name":"loader","hostname":"75b1ab7bb2f3","pid":15,"level":30,"msg":"Subscribed : DHTS","time":"2018-10-23T08:18:26.044Z","v":0}
dhtbay | (node:27) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
mongo | 2018-10-23T08:18:26.471+0000 I NETWORK [initandlisten] connection accepted from 172.18.0.5:35182 #1 (1 connection now open)
dhtbay | (node:21) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
mongo | 2018-10-23T08:18:26.875+0000 I NETWORK [initandlisten] connection accepted from 172.18.0.5:35186 #2 (2 connections now open)
dhtbay | {"name":"categorize","hostname":"75b1ab7bb2f3","pid":27,"level":30,"msg":"All torrents treated","time":"2018-10-23T08:18:30.041Z","v":0}
dhtbay | {"name":"crawler","hostname":"75b1ab7bb2f3","pid":33,"level":30,"msg":"now ready","time":"2018-10-23T08:18:30.660Z","v":0}
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
75b1ab7bb2f3 dhtbay "pm2-runtime start..." 10 hours ago Up About a minute 80/tcp, 443/tcp, 43554/tcp, 0.0.0.0:6881->6881/udp dhtbay
65c2c1d6df88 mongo:3.0 "docker-entrypoint..." 10 hours ago Up About a minute 27017/tcp mongo
20a1b0d0b7e8 flyersweb/aria2 "/docker-entrypoin..." 10 hours ago Up About a minute 0.0.0.0:6900->6800/tcp dhtaria2
921f76804829 redis:3 "docker-entrypoint..." 11 hours ago Up About a minute 6379/tcp redis
as you can see, the dhtbay container basically has only port 6881 redirected, and 80/443 are not bound to anything:
$ docker inspect dhtbay
"Ports": {
"43554/tcp": null,
"443/tcp": null,
"6881/udp": [
{
"HostIp": "0.0.0.0",
"HostPort": "6881"
}
],
"80/tcp": null
},