Use DragonflyDB (MisskeyIO#716)

This commit is contained in:
まっちゃとーにゅ
2024-09-17 03:46:58 +09:00
committed by GitHub
parent 1367c8dde6
commit 454a3f91fa
10 changed files with 112 additions and 42 deletions

View File

@@ -72,7 +72,7 @@ dbReplications: false
#───┘ Redis configuration └─────────────────────────────────────
redis:
host: keydb
host: dragonfly
port: 6379
#family: 0 # 0=Both, 4=IPv4, 6=IPv6
#pass: example-pass
@@ -80,7 +80,7 @@ redis:
#db: 1
#redisForPubsub:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
@@ -88,7 +88,7 @@ redis:
# #db: 1
#redisForJobQueue:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
@@ -96,7 +96,7 @@ redis:
# #db: 1
#redisForTimelines:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass

View File

@@ -15,17 +15,25 @@ services:
- internal_network
- external_network
keydb:
dragonfly:
restart: unless-stopped
image: eqalpha/keydb:latest
image: docker.dragonflydb.io/dragonflydb/dragonfly
ulimits:
memlock: -1
environment:
DFLY_snapshot_cron: '* * * * *'
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4
DFLY_epoll_file_threads: 4
DFLY_proactor_threads: 4
networks:
- internal_network
volumes:
- keydb-data:/data
healthcheck:
test: "keydb-cli ping"
interval: 5s
retries: 20
- dragonfly-data:/data
db:
restart: unless-stopped
@@ -45,7 +53,7 @@ services:
volumes:
postgres-data:
keydb-data:
dragonfly-data:
networks:
internal_network: