-
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
Conversation
- ./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 comment
The reason will be displayed to describe this comment to others. Learn more.
请问 privileged 是必须的吗,如果不是尽量不要添加。
ports: | ||
- "6379:9221" | ||
volumes: | ||
- ./data/pika:/pika/log |
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.
log 目录不要挂在 db dump 的上级,最好是同级。
docker-compose.yaml | ||
```yaml | ||
pikadb: | ||
image: pikadb/pika:lastest |
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.
最新的镜像地址是 pikadb/pika:latest
* #### 3.4 Running with docker-compose | ||
docker-compose.yaml | ||
```yaml | ||
pikadb: |
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 的格式有问题,文件头部应该是
version: '2'
services:
pikadb:
@@ -275,6 +275,26 @@ Users can directly download the latest binary version package from [releases](ht | |||
``` | |||
|
|||
|
|||
* #### 3.4 Running with docker-compose |
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 的用户可以参考
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
同上
a77efcf
into
OpenAtomFoundation:unstable
* document:change README_CN.md README.md * document:change README_CN.md README.md
* document:change README_CN.md README.md * document:change README_CN.md README.md
增加docker-compose配置文件的使用方式