-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: change README_CN.md README.md #2406
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,6 +275,26 @@ Users can directly download the latest binary version package from [releases](ht | |
``` | ||
|
||
|
||
* #### 3.4 Running with docker-compose | ||
docker-compose.yaml | ||
```yaml | ||
pikadb: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. docker-compose 的格式有问题,文件头部应该是
|
||
image: pikadb/pika:lastest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 最新的镜像地址是 pikadb/pika:latest |
||
container_name: pikadb | ||
ports: | ||
- "6379:9221" | ||
volumes: | ||
- ./data/pika:/pika/log | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. log 目录不要挂在 db dump 的上级,最好是同级。 |
||
# 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 | ||
- ./data/pika/dbsync:/pika/dbsync | ||
privileged: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 请问 privileged 是必须的吗,如果不是尽量不要添加。 |
||
restart: always | ||
``` | ||
|
||
|
||
## Performance test | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上 |
||
docker-compose.yaml | ||
```yaml | ||
pikadb: | ||
image: pikadb/pika:lastest | ||
container_name: pikadb | ||
ports: | ||
- "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 | ||
- ./data/pika/dbsync:/pika/dbsync | ||
privileged: true | ||
restart: always | ||
``` | ||
## Pika 未来工作规划 | ||
|
||
### 1、Pika 单机版 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请添加一个使用说明,以供不熟悉 docker-compose 的用户可以参考