This project is about hosting a vanilla minecraft server 1.15.2 with Docker.
First clone the repositorie
git clone https://github.com/anthony974/Minecraft-Server.gitThen go to the folder and start the server
docker-compose upYou can use this for stopping the server
docker exec mc-server ./stop.shIf you running this container on your local computer, this is the address of the server
localhost:25565
You can edit server.properties before starting the server for your own need.
If you want an access to the cmd you can use this command
docker exec -it mc-server mcrcon -p @c0mp1c@t3DP@ssw0rdThe minecraft world is saved in the folder world.
Thanks Tiiffi for the mcrcon.