Skip to content

Persistence How? #44

@Rekinu

Description

@Rekinu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions