2024-09-12 01:25:40 +02:00
2024-09-12 02:48:28 +02:00
2024-09-12 02:48:28 +02:00
2024-09-12 16:23:07 +02:00
2024-09-23 00:27:16 +02:00
2024-09-12 02:48:28 +02:00
2024-09-23 00:27:16 +02:00
2024-09-12 01:25:40 +02:00

Docker image for minecraft servers

Requires docker and powershell

First run

  • Run Build.ps1 to build the image
  • Run Start.ps1
  • Run Backup.ps1
  • Run Stop.ps1
  • Edit your server files in the backup directory. Edit stuff such as password, commands, etc. The container needs to exist for this to work
  • Run Restore.ps1 to restore your modified files into the container. The container needs to run for this to work
  • Run Start.ps1

Configuration

Adjust the minecraft server configuration that is mounted in /server-files relative to the directory where the dockerfile is located

Script glossary

Build.ps1 to build the docker image

If the server is currently running, it will be stopped and rebuilt. Any changes in the docker container will be lost. Backup your files before building

Start.ps1 to start the server

Stop.ps1 to stop the server

Backup.ps1 to create a backup of the minecraft files

  • If the container does not exist, backup will fail
  • If the container exists, your files will be placed in /backup/ folder

Restore.ps1 to restore your minecraft files onto the server

  • If the container does not exist, restore will fail
  • If the container exists, your files will be restored from /backup/ folder to the server container
S
Description
Docker file and utilities to run a mincraft server using papermc
Readme 150 KiB
Languages
PowerShell 81.3%
Dockerfile 18.7%