This commit is contained in:
2024-04-21 14:42:52 +02:00
parent 4b69674ede
commit 8a25f53c99
10700 changed files with 55767 additions and 14201 deletions

View File

@ -0,0 +1,18 @@
{
"connections": [
{
"label": "standalone",
"host": "redis",
"port": 6379,
"password": "password",
"dbIndex": 0
},
{
"label": "replica",
"host": "redis-replica",
"port": 6379,
"password": "password",
"dbIndex": 0
}
]
}

View File

@ -0,0 +1,30 @@
# All option are available at https://redis.io/docs/management/config-file/
# Bind to all interfaces
bind 0.0.0.0
# Specify the port for Redis to listen on
port 6379
# Enable slave mode
replicaof redis 6379
# Enable persistence
appendonly yes
# Set the path to the appendonly file
appendfilename "appendonly.aof"
# Set the path to the directory containing the appendonly file
dir /data-replica
# Set the path to the dump file
dbfilename "dump.rdb"
# Set the path to the directory containing the dump file
dir /data-replica
# Optional: Set a password for authentication
masterauth password
requirepass password

View File

@ -0,0 +1,29 @@
# All option are available at https://redis.io/docs/management/config-file/
# Bind to all interfaces
bind 0.0.0.0
# Specify the port for Redis to listen on
port 6379
# Enable master mode
# replica-serve-stale-data no
# replica-read-only yes
replication-mode master
# Enable persistence
appendonly yes
# Set the path to the appendonly file
appendfilename "appendonly.aof"
# Set the path to the directory containing the appendonly file
dir /data
# Set the path to the dump file
dbfilename "dump.rdb"
# Set the path to the directory containing the dump file
dir /data
# Optional: Set a password for authentication
requirepass password