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

Update README.md #3893

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,39 @@ After running, you can access the Dify dashboard in your browser at [http://loca

> If you'd like to contribute to Dify or do additional development, refer to our [guide to deploying from source code](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code)


## Upgrade steps
- 1. Stop the service,Command, please execute in the docker directory
```bash
docker-compose down
crazywoola marked this conversation as resolved.
Show resolved Hide resolved
crazywoola marked this conversation as resolved.
Show resolved Hide resolved
```

- 2. Back up Docker image ID
```bash
docker images | awk -F '[ ]+' '(NR>1 && $2 !~ /none/) {print "docker tag " $3" " $1":"$2}' > image.bak-$(date +%s).txt
```

- 3. Back up database files
```bash
tar -cvf volumes-$(date +%s).tgz volumes
```

- 4. Back up the docker-compose YAML file
```bash
cp docker-compose.yaml docker-compose.yaml-$(date +%s).txt
mv docker-compose.yaml docker-compose.yaml-bak
```

- 5. Download the new version of the docker-compose YAML file,using version 0.6.5 as an example
```bash
wget -O docker-compose.yaml https://github.com/langgenius/dify/raw/0.6.5/docker/docker-compose.yaml
```

- 6. Upgrade completed
```bash
docker-compose up -d
crazywoola marked this conversation as resolved.
Show resolved Hide resolved
```

## Next steps

If you need to customize the configuration, please refer to the comments in our [docker-compose.yml](docker/docker-compose.yaml) file and manually set the environment configuration. After making the changes, please run `docker-compose up -d` again. You can see the full list of environment variables [here](https://docs.dify.ai/getting-started/install-self-hosted/environments).
Expand Down