This document explains how to manage your Docker Minecraft server using the available management scripts.
Comprehensive batch script with logging and error handling.
Usage:
manage.bat start # Start the server
manage.bat stop # Stop the server
manage.bat restart # Restart the server
manage.bat status # Check server status
manage.bat logs # View logs (press Ctrl+C to exit)
manage.bat backup # Create backup
manage.bat rcon [cmd] # Execute RCON command
manage.bat update # Update Docker images
manage.bat shell # Open server shell
manage.bat help # Show all commandsFeatures:
- Detailed logging with timestamps
- Input sanitization for security
- Error handling with detailed messages
- Windows Task Scheduler integration for auto-start
- Multi-server support
- Health check functionality
Simpler PowerShell script for basic operations.
Usage:
.\manage.ps1 -Command start
.\manage.ps1 -Command stop
.\manage.ps1 -Command logs
.\manage.ps1 -Command rcon -Argument "list"Setup and management script for Linux systems.
Usage:
chmod +x setup.sh
./setup.sh start
./setup.sh stop
./setup.sh status-
Initial Setup:
- Ensure Docker and Docker Compose are installed
- Review and edit
.envfile with your settings - Run setup:
./setup.sh(Linux) or usemanage.bat(Windows)
-
Start the Server:
# Windows manage.bat start # Linux ./setup.sh start
-
Access the Server:
- Web UI: http://localhost:8080
- Minecraft: localhost:25565
- Automatic and manual backup creation
- Backups stored in
/backupsdirectory - Compressed format (tar.gz)
- Execute Minecraft commands remotely
- Input sanitization for security
- Command logging and history
- Real-time server status
- Player list monitoring
- Health checks for containers
- Log aggregation
- Docker image updates
- Container recreation
- Zero-downtime deployments
Edit .env file to configure:
RCON_PASSWORD: Server RCON passwordWEBUI_SECRET_KEY: Web UI security keySERVER_NAME: Server display nameSERVER_VERSION: Minecraft version
Modify config/server.properties for server settings:
- Game mode, difficulty, max players
- World settings, PvP configuration
- Network and security options
-
Container Restarting:
- Check logs:
manage.bat logs - Verify environment configuration
- Ensure sufficient system resources
- Check logs:
-
RCON Connection Failed:
- Wait for server to fully start
- Check RCON configuration in
.env - Verify port 25575 is not blocked
-
Web UI Not Accessible:
- Confirm container is running:
manage.bat status - Check if port 8080 is available
- Review web UI logs for errors
- Confirm container is running:
Both Minecraft server and web UI have health checks:
- Server: RCON connection test (30s interval)
- Web UI: HTTP health endpoint (30s interval)
Containers will restart automatically if health checks fail.
docker-minecraft-server/
├── manage.bat # Windows batch management
├── manage.ps1 # PowerShell management
├── setup.sh # Linux setup script
├── docker-compose.yml # Container orchestration
├── .env # Environment configuration
├── config/ # Server configuration
│ └── server.properties
├── logs/ # Server logs
├── backups/ # Backup storage
└── webui/ # Web interface code
- Change default passwords in
.env - Use strong passwords for RCON
- Restrict network access as needed
- Regular backup creation recommended
- Monitor logs for suspicious activity
For issues and support:
- Check logs:
manage.bat logs - Review configuration files
- Consult server documentation
- Check Docker container status