Skip to content
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

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

JackGod001
Copy link
Contributor

增加docker-compose配置文件的使用方式

@github-actions github-actions bot added Invalid PR Title 📒 Documentation Improvements or additions to documentation labels Feb 16, 2024
@AlexStocks AlexStocks changed the title document:change README_CN.md README.md Improvement: change README_CN.md README.md Feb 18, 2024
@AlexStocks AlexStocks changed the title Improvement: change README_CN.md README.md docs: change README_CN.md README.md Feb 18, 2024
- ./data/pika/db:/pika/db
- ./data/pika/dump:/pika/dump
- ./data/pika/dbsync:/pika/dbsync
privileged: true

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

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

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:

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

@AlexStocks AlexStocks merged commit a77efcf into OpenAtomFoundation:unstable Feb 23, 2024
10 of 15 checks passed
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* document:change README_CN.md README.md

* document:change README_CN.md README.md
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* document:change README_CN.md README.md

* document:change README_CN.md README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📒 Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants