techiedesu / HLstatsX-docker

Containerized HLstatsX for development needs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HLstatsX docker & docker-compose

HLstatsX docker file for development etc.

Requirements

  1. Docker 17.06.0+
  2. Docker-Compose 3.3+
  3. GNU/Linux (macOS & Windows NT-based systems not tested)

How to

  1. Clone this repo:
git clone https://github.com/techiedesu/HLstatsX-docker.git
  1. Enter into cloned directory and clone hlstatsx:
cd HLstatsX-docker
git clone https://github.com/nikooo777/hlstatsx-community-edition.git
  1. Create symlink
ln -s  $("pwd")/hlstatsx-community-edition/web $("pwd")/statsx_content/www
  1. 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 
  1. Run docker-compose
docker-compose up -d
  1. Setup hlstatsx database
cat hlstatsx-community-edition/sql/install.sql | docker exec -i mysql mysql -uroot -proot -Dhlstatsx
  1. Open http://localhost:8050/

About

Containerized HLstatsX for development needs

License:The Unlicense


Languages

Language:Dockerfile 100.0%