Skip to content

Commit

Permalink
Add keydb configuration (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Jul 15, 2024
1 parent bb48711 commit 127a222
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ services:
hostname: keydb
ports:
- "6379:6379"
command: ["keydb-server", "--requirepass", "${KEYDB_PASSWORD}"]
command: ["keydb-server", "/etc/keydb/keydb.conf", "--server-threads" , "2"]
restart: always
volumes:
- keydb_data:/data
- ./keydb.conf:/etc/keydb/keydb.conf
postgresql:
image: postgres:16.2
hostname: postgresql
Expand Down Expand Up @@ -45,4 +48,6 @@ services:
MC_HOST_myminio: http://sitespeedio:tracksofmytears@minio:9000
volumes:
postgres-data:
minio-data:
minio-data:
keydb_data:
driver: local
20 changes: 20 additions & 0 deletions keydb.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# You can read more about keydb configuration: https://docs.keydb.dev/docs/config-file/
# The default port
port 6379
# Your password, make sure to change this
requirepass jgsay7f2fgfgda6acCa7g()jaba51!

# Choose max memory, adjust this to the server where you run keydb
# You can also choose how many objects that should stay in keydb
# by changing removeOnComplete in the server configuration
maxmemory 6GB
maxmemory-policy allkeys-lru

# You can configure to store the the data so that queued tests will survive
# a restart
appendonly yes
appendfilename appendonly.aof
appendfsync everysec



0 comments on commit 127a222

Please sign in to comment.