mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 09:50:27 +08:00
Merge branch 'main' of github.com:OpenIMSDK/Open-IM-Server
This commit is contained in:
commit
d7b3ea0a6e
80
README.md
80
README.md
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
#### 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
|
||||||
|
git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive
|
||||||
|
cd cmd/Open-IM-SDK-Core
|
||||||
|
git checkout main
|
||||||
|
```
|
||||||
|
|
||||||
2. [Install Docker Compose](https://docs.docker.com/compose/install/) 1.22 or above.
|
1. Set executable permissions
|
||||||
|
|
||||||
3. Clone the Open-IM project to your server.
|
```shell
|
||||||
|
cd ../../script/
|
||||||
|
chmod +x *.sh
|
||||||
|
```
|
||||||
|
|
||||||
```
|
1. build
|
||||||
git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Start docker-compose with one click(Docker automatically pulls all images)
|
```shell
|
||||||
|
./batch_build_all_service.sh
|
||||||
|
```
|
||||||
|
|
||||||
```
|
all services build success
|
||||||
cd Open-IM-Server
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
5. Check service
|
|
||||||
|
|
||||||
```
|
|
||||||
./docker_check_service.sh
|
|
||||||
./check_all.sh
|
|
||||||
```
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### CONFIGURATION INSTRUCTIONS
|
### CONFIGURATION INSTRUCTIONS
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
open_im_server:
|
open_im_server:
|
||||||
image: openim/open_im_server:v2.3.5
|
image: openim/open_im_server:v2.3.6
|
||||||
container_name: open_im_server
|
container_name: open_im_server
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs:/Open-IM-Server/logs
|
- ./logs:/Open-IM-Server/logs
|
||||||
@ -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
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
internet_ip=`curl ifconfig.me -s`
|
||||||
|
echo $internet_ip
|
||||||
|
|
||||||
|
source .env
|
||||||
|
echo $MINIO_ENDPOINT
|
||||||
|
if [ $MINIO_ENDPOINT == "http://127.0.0.1:10005" ]; then
|
||||||
|
sed -i "s/127.0.0.1/${internet_ip}/" .env
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
cd script ;
|
cd script ;
|
||||||
chmod +x *.sh ;
|
chmod +x *.sh ;
|
||||||
./init_pwd.sh
|
./init_pwd.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user