Skip to content

ProgramowanieCommunity/ProgramowanieCraft

Repository files navigation

ProgramowanieCraft

Clone

Clone the project into ProgramowanieCraft directory.

Run

  1. (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"
  2. Create a secrets folder and add the secret files db_password and discord_token.

    mkdir secrets && cd secrets
    echo 'INSERT_DB_PASSWORD' > db_password
    echo 'INSERT_DISCORD_TOKEN' > discord_token
  3. Open the docker-compose.yml file and fill out the values within the CUSTOM CONFIG block.

  4. Create minecraftdata and minecraftdbdata volumes.

    docker volume create minecraftdata
    docker volume create minecraftdbdata
  5. 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).

Backup

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.

Plugins

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages