浏览代码

DOCS: amend docker image building page and more hints for mac users (#5461)

### What problem does this PR solve?

Amend docker image building page and more hints for mac users

### Type of change

- [x] Documentation Update
tags/v0.17.0
Yongteng Lei 8 个月前
父节点
当前提交
a0a7b46cff
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 33 次插入1 次删除
  1. 33
    1
      docs/guides/develop/build_docker_image.mdx

+ 33
- 1
docs/guides/develop/build_docker_image.mdx 查看文件

@@ -42,6 +42,8 @@ While we also test RAGFlow on ARM64 platforms, we do not maintain RAGFlow Docker
```bash
git clone https://github.com/infiniflow/ragflow.git
cd ragflow/
uv run download_deps.py
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .
```

@@ -61,8 +63,38 @@ cd ragflow/
uv run download_deps.py
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build -f Dockerfile -t infiniflow/ragflow:nightly .
docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .
```

</TabItem>
</Tabs>

## Launch a RAGFlow Service from Docker for MacOS

After building the infiniflow/ragflow:nightly-slim image, you are ready to launch a fully-functional RAGFlow service with all the required components, such as Elasticsearch, MySQL, MinIO, Redis, and more.

## Example: Apple M2 Pro (Sequoia)

1. Edit Docker Compose Configuration

Open the `docker/docker-compose-base.yml` file. Find the `infinity.image` setting and change the image reference from `infiniflow/infinity:v0.6.0-dev3` to `infiniflow/ragflow:nightly-slim` to use the pre-built image.

```yaml
infinity:
container_name: ragflow-infinity
image: infiniflow/ragflow:nightly-slim # here
volumes:
- ...
- ...
...
```

2. Launch the Service

```bash
cd docker
$ docker compose -f docker-compose-macos.yml up -d
```

3. Access the RAGFlow Service

Once the setup is complete, open your web browser and navigate to http://127.0.0.1 or your server's \<IP_ADDRESS\>; (the default port is \<PORT\> = 80). You will be directed to the RAGFlow welcome page. Enjoy!🍻

正在加载...
取消
保存