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

bump to 0.6.12 #5712

Merged
merged 1 commit into from
Jun 28, 2024
Merged

bump to 0.6.12 #5712

merged 1 commit into from
Jun 28, 2024

Conversation

takatost
Copy link
Collaborator

@takatost takatost commented Jun 28, 2024

✨ What’s New in v0.6.12? ✨

Important

In the current version:

  1. We have deprecated pip as the primary package management tool in favor of Poetry for the Dify API service.
  2. We have optimized the self-hosted deployment experience with Docker Compose by adding support for .env files and allowing the option to independently select Vector Database at startup.
    The previous Docker Compose configuration has been moved to the docker-legacy directory.
    For more details see Upgrade to docker compose deployment below.

Hey everyone, we’ve got a fresh update for you with v0.6.12, and it’s packed with new features, tools, and improvements. Let’s dive in:

🚀 New Features

🛠️ Tools

🤖 Model Support

🗄️ Vector Database & Storage

🏗️ API Service Infrastructures

For additional enhancements and updates, refer to the What's Changed section below.


🎉 Upgrade to docker compose deployment

Key Changes

  1. Persistent Custom Environment Variables: Users can now declare environment variables in .env that remain persistent across deployments. This change ensures that custom configurations are not lost during upgrades or redeployments.

  2. Unified Vector Database Services: All vector database services have been consolidated into a single Docker file. Users can switch between different vector databases by modifying the VECTOR_STORE environment variable in your local .env. This simplifies the management of various vdb services and allows for more dynamic deployments.

  3. Mandatory .env File: Unlike the previous deployment method, the new method requires an [.env] file before running docker compose up. Users should start by copying the .env.example file to create their own .env file. This step is crucial for configuring the deployment to meet specific needs.

  4. Legacy Support: The previous deployment files have been moved to a docker-legacy directory. These files will no longer be maintained, but they are available for use if needed.

Migrating

For existing users who's customized docker-compose.yaml, ssrf_proxy/squid.conf or nginx/conf.d/default.conf, you may need to modify the corresponding environment variables in .env to reflect your existing changes.

We are actively seeking feedback from the community to refine and enhance the deployment process. As more users adopt this new method, we will continue to make improvements based on your experiences and suggestions.

How to Get Started

To get started with the new deployment method:

  • Ensure you have Docker and Docker Compose installed on your system.
  • Navigate to the new docker directory.
  • Copy the docker/.env.example file to a new file named .env and customize it as needed.
  • Run docker compose up to start the services.

We encourage all users to transition to this new method to take advantage of the improved flexibility and configuration options. Your feedback during this beta phase is invaluable and will help us make the deployment process even better.

For detailed configuration options and environment variable settings, refer to the .env.example file and the Docker Compose configuration files in the docker directory.

Upgrade Guide

Docker compose deployments

Warning

The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
  2. Get the latest code from the main branch

    git checkout tags/0.6.12
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
  5. Upgrade services

    docker compose up -d

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout tags/0.6.12
  3. Update Python dependencies:

    cd api
    poetry install
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
  5. Finally, run API server, Worker and Web frontend Server again.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. dependencies Pull requests that update a dependency file labels Jun 28, 2024
@takatost takatost merged commit 6d0cea5 into main Jun 28, 2024
13 checks passed
@takatost takatost deleted the feat/bump-0-6-12 branch June 28, 2024 14:00
Scorpion1221 added a commit to yybht155/dify that referenced this pull request Jun 29, 2024
* commit '9513155fa46bc9bd1ed06381c163a831aea57d42': (32 commits)
  chore: support both $$ and $ latex format (langgenius#5723)
  Rename README to README.md (langgenius#5727)
  Chore/set entrypoint scripts permissions (langgenius#5726)
  add README for new docker/ directory (langgenius#5724)
  bump to 0.6.12 (langgenius#5712)
  Ignore new middleware.env docker file (langgenius#5715)
  fix: _convert_prompt_message_to_dict parameters err (langgenius#5716)
  fix: fix-app-site-missing command (langgenius#5714)
  feat: add fix-app-site-missing command (langgenius#5711)
  add docker-legacy and docker/nginx/conf.d/default.conf to .gitignore (langgenius#5707)
  fix: do not remove (langgenius#5706)
  build(deps): bump braces from 3.0.2 to 3.0.3 in /web (langgenius#5705)
  fix: yarn lock file missing (langgenius#5703)
  feat: add support Spark4.0 (langgenius#5688)
  Correction of Typo in French (langgenius#5699)
  Chore/improve deployment flow (langgenius#4299)
  feat: change TRACE_QUEUE_MANAGER_INTERVAL default value  (langgenius#5698)
  Feat/add json process tool (langgenius#5555)
  fix: do not remove (langgenius#5682)
  Feature/add qwen llm (langgenius#5659)
  ...

# Conflicts:
#	api/poetry.lock
#	api/pyproject.toml
ZhouhaoJiang added a commit that referenced this pull request Jun 30, 2024
* refs/heads/main: (29 commits)
  chore: remove port expose in docker compose (#5754)
  fix: langsmith message_trace end_user_data session_id error (#5759)
  fix: workflow trace none type error (#5758)
  fix: missing process data in parameter extractor (#5755)
  Docs/add docker dotenv notes (#5750)
  fix: slow sql of ops tracing (#5749)
  Update docker-compose.yaml (#5745)
  bump to 0.6.12-fix1 (#5743)
  fix: env SMTP_PORT is empty caused err when launching (#5742)
  fix: app config does not use empty string in the env (#5741)
  fix: couldn't log in or resetup after a failed setup (#5739)
  chore: support both $$ and $ latex format (#5723)
  Rename README to README.md (#5727)
  Chore/set entrypoint scripts permissions (#5726)
  add README for new docker/ directory (#5724)
  bump to 0.6.12 (#5712)
  Ignore new middleware.env docker file (#5715)
  fix: _convert_prompt_message_to_dict parameters err (#5716)
  fix: fix-app-site-missing command (#5714)
  feat: add fix-app-site-missing command (#5711)
  ...
ZhouhaoJiang added a commit that referenced this pull request Jul 1, 2024
* refs/heads/feat/knowledge-admin-role: (25 commits)
  feat: dataset operator permission
  feat: patch dataset when not partial_member_list refresh datasetp permission
  chore: remove port expose in docker compose (#5754)
  fix: langsmith message_trace end_user_data session_id error (#5759)
  fix: workflow trace none type error (#5758)
  fix: missing process data in parameter extractor (#5755)
  Docs/add docker dotenv notes (#5750)
  fix: slow sql of ops tracing (#5749)
  Update docker-compose.yaml (#5745)
  bump to 0.6.12-fix1 (#5743)
  fix: env SMTP_PORT is empty caused err when launching (#5742)
  fix: app config does not use empty string in the env (#5741)
  fix: couldn't log in or resetup after a failed setup (#5739)
  chore: support both $$ and $ latex format (#5723)
  Rename README to README.md (#5727)
  Chore/set entrypoint scripts permissions (#5726)
  add README for new docker/ directory (#5724)
  bump to 0.6.12 (#5712)
  Ignore new middleware.env docker file (#5715)
  fix: _convert_prompt_message_to_dict parameters err (#5716)
  ...

# Conflicts:
#	api/commands.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant