HLstatsX docker file for development etc.
- Docker 17.06.0+
- Docker-Compose 3.3+
- GNU/Linux (macOS & Windows NT-based systems not tested)
- Clone this repo:
git clone https://github.com/techiedesu/HLstatsX-docker.git
- Enter into cloned directory and clone hlstatsx:
cd HLstatsX-docker
git clone https://github.com/nikooo777/hlstatsx-community-edition.git
- Create symlink
ln -s $("pwd")/hlstatsx-community-edition/web $("pwd")/statsx_content/www
- Create config file for hlstatsx or copy existing
sample.config.php
sed -i '48s/.*/define("DB_USER", "root");/' statsx_content/www/web/config.php
sed -i '51s/.*/define("DB_PASS", "root");/' statsx_content/www/web/config.php
sed -i '54s/.*/define("DB_NAME", "hlstatsx");/' statsx_content/www/web/config.php
Otherwise, you can manually config file and use mysql connection data:
User: root
Password: hlstatsx
Database: hlstatsx
- Run docker-compose
docker-compose up -d
- Setup hlstatsx database
cat hlstatsx-community-edition/sql/install.sql | docker exec -i mysql mysql -uroot -proot -Dhlstatsx