DockerCraft
Docker image for creating Minecraft servers 📦

The Story
Ever had a Minecraft server eating up resources 24/7 even when no one's playing? That's the exact problem that kept bugging me. Sure, you could manually shut down the server, but who wants to be the server babysitter? That's when DockerCraft was born - a solution that lets your Minecraft server take smart power naps.
What Makes It Special
Imagine your server as a friendly shopkeeper. When players are around, it's fully awake and ready to serve. But when the last player leaves, instead of staying up all night, it dims the lights and dozes off, saving precious resources. As soon as someone knocks the door (tries to connect), it springs back to life in seconds. Pure magic! ✨
The Technical Craft
Core Features
- 🛌 Smart Sleep: Server automatically rests when idle using
lazymc
- 🎮 Multi-flavor Support: Run Vanilla, Paper, Purpur, Fabric, or Forge servers
- 🐳 Docker Simplified: One command to rule them all
- 🔧 Flexible Configuration: Fine-tune everything from RAM to Java options
The Secret Sauce
Built this beast using:
- Docker containerization for consistent deployment
- Lazymc for smart resource management
- ServerJars API integration for seamless server setup
- Custom environment variable system for flexible configuration
Challenges & Solutions
The Resource Puzzle 🧩
- Challenge: Minecraft servers are notorious resource hogs
- Solution: Implemented smart sleep states that cut resource usage to nearly zero when idle
- Result: Servers can now cool down and save resources during quiet hours, perfect for home-hosted servers or resource-conscious environments
The Configuration Conundrum 🎯
- Challenge: Making it user-friendly without sacrificing flexibility
- Solution: Created an intuitive environment variable system
- Result: From novices to power users, everyone can customize their setup
Impact & Numbers
- 💪 19+ GitHub Stars
- 🔄 Multiple Server Providers Supported
- 🌱 Growing Community Discussion
Behind the Scenes
The project started as a fork but evolved into something much more comprehensive. Working with Timvisee (Lazymc's creator) and learning from the Minecraft server community shaped DockerCraft into what it is today. Every feature added was driven by real user needs and community feedback.
What's Next?
- [ ] Support for more server providers
- [ ] Enhanced backup systems
- [ ] Community-driven configuration templates
Getting started
Use this command to immediately start a server with the default settings
Code
Copied!
sudo docker run -p 25565:25565 -e okazakee/mcserver-lazymc-docker