-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
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.
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels