This project allows you to run a Minecraft server using Docker.
- Docker installed on your machine
-
Clone this repository:
git clone https://github.com/mc-nations/config.git minecraft-nations
-
Initialize and update submodules:
cd minecraft-nations git submodule init git submodule update
-
Create a
minecraft.env
file:touch minecraft.env
-
Customize the environment variables in the
minecraft.env
file as per your requirements. The two variables that can be configured are:min_memory
: The minimum memory allocation for the Minecraft server.max_memory
: The maximum memory allocation for the Minecraft server.
-
Start the Docker Compose with the
--build
flag:docker-compose up --build
This command will build and start the Minecraft server container.
Contributions are welcome! If you find any issues or have suggestions, please open an issue or submit a pull request.
This project is licensed under the MIT License.
You can customize the environment variables in this file as per your requirements.