mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
Update README.md (#633)
* Update README.md add docker-compose example config Signed-off-by: yingshaoxo <yingshaoxo@gmail.com>
This commit is contained in:
parent
b3228fe3a0
commit
1895d3113e
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
@ -95,6 +95,24 @@ redis-cli PING # redis-cli can be installed with "apt install -y redis-tools"
|
|||
|
||||
*You need `--ulimit memlock=-1` because some Linux distros configure the default memlock limit for containers as 64m and Dragonfly requires more.*
|
||||
|
||||
### With docker-compose:
|
||||
```yaml
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
dragonfly: # the new redis
|
||||
image: docker.dragonflydb.io/dragonflydb/dragonfly
|
||||
command:
|
||||
- "--save_schedule=*:*" # save for every 1 minute
|
||||
- "--dir=/data"
|
||||
- "--dbfilename=dump.rdb"
|
||||
ports:
|
||||
- '6379:6379'
|
||||
volumes:
|
||||
- "./dragonfly_data:/data"
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
### Releases
|
||||
We maintain [binary releases](https://github.com/dragonflydb/dragonfly/releases) for x86 and arm64 architectures. You will need to install `libunwind8` lib to run the binaries.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue