This project is not affiliated whatsoever with brawlstats developed by overwolf neither with brawlstars developed by supercell although this program uses brawlstar's API
You will need to create environment files corresponding to your installation :
API_TOKEN=<your api token>
DB_USER=<username you set in mongodb.env>
DB_PWD=<password you set in mongodb.env>
DB_IP=localhost
DB_PORT=27017
PLAYER_TAG=#<your brawlstars tag>
MONGO_INITDB_ROOT_USERNAME=<your username (usually root)>
MONGO_INITDB_ROOT_PASSWORD=<database root password>
MONGO_INITDB_DATABASE=stats
COOKIE_SECRET=<your cookie passphrase>
Note that the parameter MONGO_INITDB_DATABASE
is the one used in main.js in the variable dbname
The DB_IP parameter is overwritten by docker.env when used in the docker, as set in docker-compose.yaml
Then you just have to run docker-compose up -d
to start the containers.
The mongo database is actually exposed for development purpose, to fix it, deleting the mongo_net
in the docker-compose.yaml should work
To get an api key, visit this page (you'll need to register or login) developer.brawlstars.com