You have to create one key pair for your ec2 instance, for ssh login
ssh -i "C:\path\to\minecraft-key.pem" ec2-user@PUBLIC_IP
Replace the path and publicIP
It can clean all resource our create, avoid forget close ec2 to getting charge
- maybe need to change remove rank(order) to avoid dependent. so cant delete some resource
go run sshConnect.go --key "C:\path\to\minecraft-key.pem" --run
-
VPC
-
Internet GateWay
-
bash for install paper mc
-
how to load plugin to my minecraft server using s3??
- or using docker package my paper mc using some special feature run server??
This project now includes a complete Docker setup for running PaperMC server. Here's how to use it:
-
Build and start the server:
# Build the Docker image docker build -t papermc-server . # Start the server using Docker Compose docker-compose up -d
-
Or use the management script:
# On Linux/Mac ./docker-run.sh build ./docker-run.sh start # On Windows docker-run.sh build docker-run.sh start
You can customize your server by modifying the environment variables in docker-compose.yml:
MINECRAFT_VERSION: Minecraft version (default: 1.20.4)MEMORY_SIZE: JVM memory allocation (default: 2G)EULA: Accept Minecraft EULA (default: true)MAX_PLAYERS: Maximum players (default: 20)GAMEMODE: Default gamemode (default: survival)DIFFICULTY: World difficulty (default: easy)
The server uses server.properties.template as a base. You can:
- Modify the template file directly
- Mount a custom
server.propertiesfile in docker-compose.yml
Install plugins using the provided scripts:
# Install specific plugin
./plugins/install-plugins.sh install WorldEdit
# Install all available plugins
./plugins/install-plugins.sh install-all
# List available plugins
./plugins/install-plugins.sh listAvailable plugins:
- WorldEdit
- EssentialsX
- LuckPerms
- Vault
- WorldGuard
- Dynmap
- GriefPrevention
- CoreProtect
# View server logs
docker-compose logs -f
# Stop the server
docker-compose down
# Restart the server
docker-compose restart
# Backup server data
./docker-run.sh backup
# Check server status
./docker-run.sh statusThe following directories are mounted as volumes for data persistence:
./data- World data./plugins- Plugin files./logs- Server logs
This Docker setup can be easily integrated with your existing AWS deployment:
-
Deploy to EC2:
# Copy Docker files to your EC2 instance scp -i "minecraft-key.pem" -r . ec2-user@YOUR_EC2_IP:/home/ec2-user/minecraft/ # SSH into EC2 and start the server ssh -i "minecraft-key.pem" ec2-user@YOUR_EC2_IP cd minecraft docker-compose up -d
-
Use with S3 for plugin storage:
- Upload plugins to S3 bucket
- Modify startup script to download from S3
- Use AWS CLI in container to sync plugins
- Server won't start: Check if port 25565 is available
- Out of memory: Increase
MEMORY_SIZEin docker-compose.yml - Plugin issues: Check plugin compatibility with your Minecraft version
- Connection issues: Verify firewall settings and port forwarding
- make a app can control open minecraft server
- Docker setup for PaperMC server
- Plugin management system
- Integration with S3 for plugin storage
- Web-based admin panel
- How to read my costom plugin i made