Clone the project into ProgramowanieCraft
directory.
-
(Optional) Restore a backup file. The backup file must be in a backups directory.
docker run --rm --volumes-from programowaniecraft-minecraft-1 -v /home/INSERT_BACKUPS_DIRECTORY:/backup bash -c "cd /data && tar xvf /backup/INSERT_BACKUP_FILENAME.tar --strip 1"
-
Create a
secrets
folder and add the secret filesdb_password
anddiscord_token
.mkdir secrets && cd secrets echo 'INSERT_DB_PASSWORD' > db_password echo 'INSERT_DISCORD_TOKEN' > discord_token
-
Open the
docker-compose.yml
file and fill out the values within theCUSTOM CONFIG
block. -
Create
minecraftdata
andminecraftdbdata
volumes.docker volume create minecraftdata docker volume create minecraftdbdata
-
Run the server.
docker-compose up -d --force-recreate
You should restart the server after the first run (
spigot.yml
cannot be patched during the first run, because it doesn't exist).
You can backup the minecraftdata
volume by using the script in scripts/backup.sh
. Please add it to cron for automatic backups (scripts/cron
).
Backing up the database is possible, but the author of this project was too lazy to write the scripts here. Please refer to the official MariaDB documentation.
- Chunky (v1.3.136)
- CoreProtect (v22.2)
- DiscordSRV (v1.27.0)
- EpicGuard (v7.6.0)
- FarmControl (v1.2.5)
- GrimAnticheat (v2.3.61)
- Insights (v6.17.2)
- LibreLogin (v0.19.3)
- LuckPerms (v5.4.121)
- Pl3xMap (v1.20.4-487)
- SkinsRestorer (v15.0.7)
- spark (v1.10.60)
- Vault (v1.7.3)
- WorldEdit (v7.3.0)
- WorldGuard (v7.0.9)