From 169be7b9ff3f42c5ed083fdb3d3b02d033df7cde Mon Sep 17 00:00:00 2001 From: baishaojie_mac <674791374@qq.com> Date: Fri, 16 Feb 2024 09:26:55 +0800 Subject: [PATCH 1/2] document:change README_CN.md README.md --- README.md | 19 +++++++++++++++++++ README_CN.md | 19 ++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1eab145b42..13ac8c5fa4 100644 --- a/README.md +++ b/README.md @@ -275,6 +275,25 @@ Users can directly download the latest binary version package from [releases](ht ``` +* #### 3.4 Running with docker-compose +docker-compose.yaml +```yaml + pikadb: + image: pikadb/pika:lastest + container_name: pikadb + ports: + - "6379:9221" + volumes: + - ./data/pika:/pika/log + # Specify the configuration file path. If you need to specify a configuration file, specify it here. + #- ./deploy/pika:/pika/conf + - ./data/pika/db:/pika/db + - ./data/pika/dump:/pika/dump + - ./data/pika/dbsync:/pika/dbsync + privileged: true + restart: always +``` + ## Performance test diff --git a/README_CN.md b/README_CN.md index f18b1448e6..92bb67c760 100644 --- a/README_CN.md +++ b/README_CN.md @@ -266,7 +266,24 @@ Pika 力求在完全兼容 Redis 协议、 继承 Redis 便捷运维设计的前 --image redis -it --rm --restart=Never \ -- /usr/local/bin/redis-cli -h pika-sample -p 9221 info ``` - +* #### 3.4 使用 docker-compose + docker-compose.yaml +```yaml + pikadb: + image: pikadb/pika:lastest + container_name: pikadb + ports: + - "6379:9221" + volumes: + - ./data/pika:/pika/log + # 指定配置文件路径,如果有需要指定配置文件则在这里指定 + #- ./deploy/pika:/pika/conf + - ./data/pika/db:/pika/db + - ./data/pika/dump:/pika/dump + - ./data/pika/dbsync:/pika/dbsync + privileged: true + restart: always +``` ## Pika 未来工作规划 ### 1、Pika 单机版 From 6f6050162774b130ec555c16cc591f6d55c862fc Mon Sep 17 00:00:00 2001 From: baishaojie_mac <674791374@qq.com> Date: Fri, 16 Feb 2024 09:35:37 +0800 Subject: [PATCH 2/2] document:change README_CN.md README.md --- README.md | 1 + README_CN.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13ac8c5fa4..79356d1614 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,7 @@ docker-compose.yaml volumes: - ./data/pika:/pika/log # Specify the configuration file path. If you need to specify a configuration file, specify it here. + # Note: pika.conf should be in the ./deploy/pika directory #- ./deploy/pika:/pika/conf - ./data/pika/db:/pika/db - ./data/pika/dump:/pika/dump diff --git a/README_CN.md b/README_CN.md index 92bb67c760..460ff999b7 100644 --- a/README_CN.md +++ b/README_CN.md @@ -276,7 +276,7 @@ Pika 力求在完全兼容 Redis 协议、 继承 Redis 便捷运维设计的前 - "6379:9221" volumes: - ./data/pika:/pika/log - # 指定配置文件路径,如果有需要指定配置文件则在这里指定 + # 指定配置文件路径,如果有需要指定配置文件则在这里指定 注意: pika.conf 要在./deploy/pika目录中 #- ./deploy/pika:/pika/conf - ./data/pika/db:/pika/db - ./data/pika/dump:/pika/dump