Sign inSign up

sersh/ttt

By sersh

•Updated 4 days ago

Total Traffic Trader dockerized.

Image
2

1.3K

sersh/ttt repository overview

⁠Total Traffic Trader official docker image

This image contains official distribution of Total Traffic Trader⁠ suitable for docker.

You should mount your volume for data in /data directory.

The listening port is 8399.

Config file located in /etc/config.toml. You may want to replace it with your own. Default config:

[webserver]
port                        = 8399
# Header where real IP located
real-ip-header			    = "X-Real-IP"

[database]
# Path for database and other data. Should be writable by ttt user
path                        = "/data"
# Interval for backup all the databases
backup-interval             = "12 hours"
# Number of backup copies to keep
backup-copies               = 4

[sessions]
# Session expire time
expire                      = "1 hour"

[geoip]
# Maxmind geoip configuration
# Maxmind country database is required and ON by default
# Other databases needed only for TDS if you use them in filters. They will have some impact on performance and memory usage
city                        = true
isp                         = true

# If you update maxmind database from maxmind site by yourself or by paid subscription, provide urls of your downloaded GEOIP2 *.mmdb database archives in .tar.gz
country-url				    = "https://totaltraffictrader.com/geo/country.tar.gz"
city-url		                  = "https://totaltraffictrader.com/geo/city.tar.gz"
isp-url					    = "https://totaltraffictrader.com/geo/asn.tar.gz"

[general]
# Timezone for day start/end, use TZ database name. Full list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone                    = "UTC"
# Query param to bypass cache for toplists
nocache-param               = "nocache"
# Toplist image expire time, after which script will fetch the new one from the source site
toplist-image-expire        = "24 hours"
# Toplist image creating retry attempt interval
retry-image-create-interval = "60 minutes"
# Access log
enable-access-log           = false

You may want at least to change timezone to your local timezone, like Europe/Moscow, nocache-param, maxmind database urls ( if you have paid maxmind databases ).

PHP integration scripts placed in /data directory, i.e: /data/somesite.com.php. For them to work, please, set environment variable TTT_HOST=ttt(if from php container ttt container available at host ttt) for your php container.

Tag summary

Content type

Image

Digest

sha256:87cc1592b…

Size

10.6 MB

Last updated

4 days ago

docker pull sersh/ttt