- Linux Server
- Docker Installed on Server
- Docker Compose Installed
- Minecraft Java edition
-
Create a Digital Ocean Account for free using this link to get $100 credit!!
-
Create an Ubuntu server with minimum of 4GB of RAM
-
Connect to the server using ssh
- Example:
$ ssh root@your-server-ip-address
- Example:
-
Install
Docker
using the convenience script: -
Install
Docker Compose
- Follow these steps: https://docs.docker.com/compose/install/
-
Git clone this same repo on your server or just copy the
docker-compose.yml
file -
Run the docker compose file:
$ docker-compose up -d
-
Open Minecraft and direct connect to the server
If you run this server as it comes, you can only play it if you have bought Minecraft, but you could also play it for free using TLauncher
- Navigate to
/minecraft-data
folder - Edit the
server.propeties
file and change:online-mode=true
toonline-mode=false
- Restart the server:
$ docker-compose restart