mine_search is a Minecraft server search engine. It allows you to search for Minecraft servers using a PostgreSQL database. The application is designed to be lightweight, flexible, and easy to deploy.
- Search Minecraft servers: Quickly find information about Minecraft servers from the database.
- PostgreSQL database: All server data is stored in a robust PostgreSQL database.
- Docker support: Easily run the application in a Docker container.
- Environment configuration: Specify the connection details to the PostgreSQL database in a
.env
file.
- Docker installed on your system
- PostgreSQL database with server data
- Diesel CLI for managing the database schema
-
Clone the repository:
git clone https://github.com/kauri-off/mine_search cd mine_search
-
Create a
.env
file in the root directory and specify the connection details to your PostgreSQL database:DATABASE_URL=postgres://username:password@localhost:5432/mine_search_db
If you are running the application using Docker, specify the connection details for the PostgreSQL container, for example:
POSTGRES_USER=postgres POSTGRES_PASSWORD=password POSTGRES_DB=mine_search_db
-
Set up the database using Diesel:
diesel setup
-
Build and run the application in a Docker container:
source .env docker compose up -d --build
-
The application will be accessible based on the configuration in the
docker-compose.yml
file.
- Ensure you have Rust and Cargo installed on your system.
- Run the application directly:
source .env cargo run
- For now, it's just a raw database, but later I will add a web panel.
Variable | Description |
---|---|
THREADS |
Number of threads searching for servers |
DATABASE_URL |
PostgreSQL connection string |
POSTGRES_USER |
PostgreSQL username |
POSTGRES_PASSWORD |
PostgreSQL password |
POSTGRES_DB |
PostgreSQL database name |
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.