Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistence How? #44

Open
Rekinu opened this issue Jan 25, 2025 · 1 comment
Open

Persistence How? #44

Rekinu opened this issue Jan 25, 2025 · 1 comment

Comments

@Rekinu
Copy link

Rekinu commented Jan 25, 2025

Configuration for Persistence
In the Docker Reforger setup, the persistence settings are crucial for saving game states and loadouts.

Modify config.json: Open the config.json file within the container or volume. Ensure it includes the following:

json
Copy
Edit
{
"persistence": {
"enabled": true,
"filePath": "/server/profile/persistence"
},
"saveInterval": 300
}
Set enabled to true.
Define the filePath to the persistent storage location.
Adjust the saveInterval as needed.
Mount the Persistence Volume: The container should mount a volume for storing persistent data. For example:

yaml
Copy
Edit
volumes:

  • ./persistence:/server/profile/persistence
    This maps the local persistence directory to the container's persistence folder.
  1. File and Folder Permissions
    Ensure the local persistence folder (./persistence) has proper permissions for Docker:
    bash
    Copy
    Edit
    sudo chown -R 1000:1000 ./persistence
    sudo chmod -R 755 ./persistence
    Replace 1000:1000 with the UID and GID of the Docker process.
@Rekinu
Copy link
Author

Rekinu commented Jan 25, 2025

Cant find a way to save server info if a player disconnects it doesn't save his stuff or after server reboot all progress is removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant