This is an example to start a Minecraft server, using the image itzg/minecraft-server:latest
.
All you need to do is to download this docker-compose.yml and .env, and start the server with docker-compose up -d
.
For more details, you can see https://github.com/itzg/docker-minecraft-server.