Deploying PocketMine-MP Stats is easy:
Pre-requisites:
- Git
- .NET IDE of your choice
- MySQL/MariaDB server
Steps:
- Clone the repo
- Open the PocketMineStats.sln file in your IDE
- Set your user secrets using the example below
{ "ConnectionStrings": { "StatsContext": "server=127.0.0.1;user id=stats;password=password;database=stats" } }
- Run the project, or use
dotnet run
from the PocketMineStats.Web directory if you're using the CLI
Pre-requisites:
- Git
- Docker
Steps:
- Clone the repo
cd
into it- Copy
example.env
to.env
and edit it to change the db passwords- Optional: Set the APPLICATIONINSIGHTS_CONNECTION_STRING to a valid Azure Application Insights connection string for diagnostics
- Run
docker compose up mariadb
to initialize the database, and then Ctrl+C when it's done loading - Run
docker compose up -d
to start the server (Note: this uses Docker Compose V2, so the command isdocker compose
instead ofdocker-compose
)
And that's it! The server is now accessible on http://localhost:5040.