This project sets up a Minecraft server using Docker. It uses the PaperMC project to provide a high-performance Minecraft server.
- Docker installed on your machine
-
Clone this repository:
git clone https://github.com/yourusername/minecraft-server.git cd minecraft-server -
Build the Docker image:
docker build -t minecraft-server:0.0.1 . -
Run the server using the provided script:
./run_server.sh
-
Alternatively, you can run the server manually:
docker run -d \ -v $(pwd)/minecraft/merge:/minecraft/merge \ -v $(pwd)/minecraft/world:/minecraft/world \ -v $(pwd)/minecraft/logs:/minecraft/logs \ -p 25565:25565 \ --name minecraft-server \ minecraft-server:0.0.1
You can configure the server by editing the server.properties file. This file is copied into the Docker container when it is built.
The following volumes are used to persist data:
/minecraft/merge/minecraft/world/minecraft/logs
Lucas Laredo
GitHub: @devlucaslaredo
Email: devlucaslaredo@gmail.com