You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
This maps the local persistence directory to the container's persistence folder.
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.
The text was updated successfully, but these errors were encountered: