Minecraft server with paper plugin in a container
- docker installed
# Run the server container
docker compose up -dMost settings are in ./data/server.properties
Just show the container logs
docker logs <container_name>Settings to add OP player can be done by creating a file ./data/ops.json filled as follow :
[
{
"uuid": "player_GUID_as_seen_in_server_console",
"name": "player_NAME_as_seen_in_server_console",
"level": 4,
"bypassesPlayerLimit": true
}
]either attach the contianer
docker attach <container_name>
# ! Attention, attaching will exit the server when exiting the consoleor throw commands at the container
msg="This command is run in the server via the rcon interface !"
docker exec minecraft-server-mc-1 rcon-cli say "$msg"Provide a automated backup system, wuth systemd service
# Install the service
./install-maintenance.shThe service will run everyday at noon and do the following :
- Notify server users 5 minutes prior to the backup
- after the 5 minutes delay, shutdown server and container
- do a backup that will be stored in './backup'
Have fun !