openimsdk / openim-docker

openim-docker configuration for deploying OpenIM. Provides a build solution for a stable distribution, as well as a docker compose deployment strategy
https://openim.io
Apache License 2.0
36 stars 46 forks source link

How do I upgrade to V3.4 after Docker has deployed V3.3 #50

Closed linyouye closed 5 months ago

linyouye commented 9 months ago

What would you like to share?

Docker 部署 V3.3 后,如何升级到V3.4

Additional information

No response

kubbot commented 9 months ago

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

cubxxw commented 9 months ago
  1. Retrieve the Path of the Data:

    • Run the command in your terminal:

      cat .env | grep DATA_DIR
    • This will output the current value of DATA_DIR which should be something like DATA_DIR=${DATA_DIR}/components/.

  2. Copy the Path to a New Location:

    • After identifying the path, use the cp command to copy it:

      cp -r DATA_DIR/ /openim/data
    • Replace components/ with the actual path if it's different.

  3. Set the Environment Variable to the New Location:

    • Set the DATA_DIR environment variable to the new path:

      export DATA_DIR="/openim/data"
    • Note: This change is temporary and only applies to your current session. For a permanent change, you'll need to modify the .env file or your system's environment settings.

  4. Clone a New Repository and Initialize Variables:

    • Clone the new repository :

      git clone https://github.com/openimsdk/openim-docker
    • Navigate to the repository directory and run:

      make init
  5. Start Docker Containers:

    • Finally, start the Docker containers:

      docker compose up -d

Remember to adjust the commands according to your actual file paths and repository details. Also, ensure you have the necessary permissions to execute these commands and that Docker is properly installed and configured on your system.

In addition, we are currently considering developing a comprehensive upgrade plan. It would be greatly appreciated if you could pay attention to it and provide any assistance or guidance you may have. Your support would be invaluable to us.

linyouye commented 9 months ago

Thanks for your guidance and I haved upgrade to V3.4 successfully.

But now I have a new question with V3.4 When I open ther Admin Web and try to login,It reports a CORS ERROR.

How can I customize the API URL

linyouye commented 9 months ago
图片
kubbot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


图片
kubbot commented 7 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

cubxxw commented 7 months ago

@linyouye Has the issue at hand been resolved at this point in time?

kubbot commented 5 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.