Creating a configuration file
Based on the documentation, we will enable Redis to take a snapshot of at least one key change in 60 seconds. Our Redis configuration will look like this:
dbfilename taskmanager.rdb save 60 1
Here, we changed the backup name to taskmanager.rdb
. We will take a snapshot every 60 seconds if at least one key changes. Now that the configuration is ready, we need a way to attach this configuration file to the database we created earlier using Compose.