File size: 1,313 Bytes
fd3a37d
 
 
 
 
 
 
 
 
 
 
561b959
fd3a37d
 
 
561b959
fd3a37d
 
 
 
 
 
 
 
 
 
 
561b959
 
fd3a37d
 
 
 
 
 
 
 
 
561b959
fd3a37d
 
 
 
 
 
 
 
 
 
561b959
fd3a37d
 
 
 
 
 
 
561b959
fd3a37d
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
sidebar_position: 7
slug: /upgrade_ragflow
---

# Upgrade RAGFlow
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

You can upgrade RAGFlow to the dev version or the latest version:

- The Dev version (Development version) is the latest, tested Docker image of RAGFlow.
- The latest version is the most recent, officially published release. For example, `v0.13.0`.


## 1. Update RAGFLOW_IMAGE

Update **ragflow/docker/.env** as follows:

<Tabs
  defaultValue="dev"
  values={[
    {label: 'Upgrade RAGFlow to the dev version', value: 'dev'},
    {label: 'Upgrade RAGFlow to the latest version', value: 'latest'}
  ]}>
  <TabItem value="dev">

:::danger IMPORTANT
The Dev version (Development version) is the latest, tested Docker image of RAGFlow.
:::

```bash
RAGFLOW_IMAGE=infiniflow/ragflow:dev
```

  </TabItem>
  <TabItem value="latest">

:::danger IMPORTANT
The latest version is the most recent, officially published release. For example, `v0.13.0`.
:::

```bash
RAGFLOW_IMAGE=infiniflow/ragflow:latest
```

  </TabItem>
</Tabs>

## 2. Pull the latest code

Pull the latest code from inside Docker:

```bash
git pull
```

## 3. Update RAGFlow image and restart RAGFlow

```bash
docker compose -f docker/docker-compose.yml pull
docker compose -f docker/docker-compose.yml up -d
```