Merge branch 'main' into v2.3.0release

This commit is contained in:
wangchuxiao 2022-12-16 15:56:04 +08:00
commit 4f2d543651
2 changed files with 38 additions and 44 deletions

View File

@ -36,75 +36,69 @@ By deployment of the Open-IM-Server on the customer's server, developers can int
> Open-IM relies on five open source high-performance components: ETCD, MySQL, MongoDB, Redis, and Kafka. Privatization deployment Before Open-IM-Server, please make sure that the above five components have been installed. If your server does not have the above components, you must first install Missing components. If you have the above components, it is recommended to use them directly. If not, it is recommended to use Docker-compose, no To install dependencies, one-click deployment, faster and more convenient. > Open-IM relies on five open source high-performance components: ETCD, MySQL, MongoDB, Redis, and Kafka. Privatization deployment Before Open-IM-Server, please make sure that the above five components have been installed. If your server does not have the above components, you must first install Missing components. If you have the above components, it is recommended to use them directly. If not, it is recommended to use Docker-compose, no To install dependencies, one-click deployment, faster and more convenient.
#### Source code deployment #### Deploy using Docker
1. Install [Go environment](https://golang.org/doc/install). Make sure Go version is at least 1.15. 1. Install [Go environment](https://golang.org/doc/install). Make sure Go version is at least 1.17
2. Clone the Open-IM project to your server. 2. Clone the Open-IM project to your server
``` ```
git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive
``` ```
3. Build and start Service. 3. Deploy
1. Shell authorization 1. Modify env
``` ```
#cd Open-IM-server/script #cd Open-IM-server
USER=root
chmod +x *.sh PASSWORD=openIM123 #Password with more than 8 digits, excluding special characters
ENDPOINT=http://127.0.0.1:10005 #Replace 127.0.0.1 with Internet IP
DATA_DIR=./
``` ```
2. Execute the build shell 2. Deploy && Start
``` ```
./build_all_service.sh chmod +x install_im_server.sh;
``` ./install_im_server.sh;
3. Start service
```
./start_all.sh
``` ```
4. Check service 4. Check service
``` ```
./check_all.sh cd script;
./docker_check_service.sh./check_all.sh
``` ```
![OpenIMServersonSystempng](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/docs/Open-IM-Servers-on-System.png) ![OpenIMServersonSystempng](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/docs/Open-IM-Servers-on-System.png)
#### Docker deployment #### Deploy using source code
All images are available at https://hub.docker.com/r/lyt1123/open_im_server 1. Go 1.17 or above。
2. Clone
1. [Install Docker](https://docs.docker.com/install/) 1.13 or above. ```shell
2. [Install Docker Compose](https://docs.docker.com/compose/install/) 1.22 or above.
3. Clone the Open-IM project to your server.
```
git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive
cd cmd/Open-IM-SDK-Core
git checkout main
``` ```
4. Start docker-compose with one click(Docker automatically pulls all images) 1. Set executable permissions
``` ```shell
cd Open-IM-Server cd ../../script/
docker-compose up -d chmod +x *.sh
``` ```
5. Check service 1. build
``` ```shell
./docker_check_service.sh ./batch_build_all_service.sh
./check_all.sh
``` ```
![OpenIMServersondockerpng](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/docs/Open-IM-Servers-on-docker.png) all services build success
### CONFIGURATION INSTRUCTIONS ### CONFIGURATION INSTRUCTIONS

View File

@ -139,7 +139,7 @@ services:
max-file: "2" max-file: "2"
open_im_enterprise: open_im_enterprise:
image: openim/open_im_enterprise:v1.0.0 image: openim/open_im_enterprise:v1.0.2
container_name: open_im_enterprise container_name: open_im_enterprise
volumes: volumes:
- ./logs:/Open-IM-Enterprise/logs - ./logs:/Open-IM-Enterprise/logs