Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pengjinning committed Jan 15, 2025
1 parent a609378 commit 58da0e8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 81 deletions.
53 changes: 12 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-06-05 09:43:27
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-01-15 13:51:23
* @LastEditTime: 2025-01-15 17:15:58
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
Expand Down Expand Up @@ -52,46 +52,17 @@ Team Cooperation with AI powered Omnichannel customer service
## Docker

```bash
# 1. create network
docker network create bytedesk-network

# 2. start mysql
docker run -d \
--name mysql-bytedesk \
--network bytedesk-network \
-e MYSQL_DATABASE=bytedesk_im \
-e MYSQL_ROOT_PASSWORD=r8FqfdbWUaN3 \
-p 3306:3306 \
-v mysql_data:/var/lib/mysql \
mysql:latest

# 3. start Redis
docker run -d \
--name redis-bytedesk \
--network bytedesk-network \
-p 6379:6379 \
-v redis_data:/data \
redis/redis-stack-server:latest \
/bin/sh -c "redis-server --requirepass qfRxz3tVT8Nh"

# 4. start Bytedesk
docker run -d \
--name bytedesk \
--network bytedesk-network \
-p 9003:9003 \
-p 9885:9885 \
-v upload_data:/app/uploads \
-e SPRING_DATASOURCE_URL=jdbc:mysql://mysql-bytedesk:3306/bytedesk_im \
-e SPRING_DATASOURCE_USERNAME=root \
-e SPRING_DATASOURCE_PASSWORD=r8FqfdbWUaN3 \
-e SPRING_DATA_REDIS_HOST=redis-bytedesk \
-e SPRING_DATA_REDIS_PASSWORD=qfRxz3tVT8Nh \
registry.cn-hangzhou.aliyuncs.com/bytedesk/bytedesk:latest

# stop and remove
# docker stop bytedesk redis-bytedesk mysql-bytedesk
# docker rm bytedesk redis-bytedesk mysql-bytedesk
# docker network rm bytedesk-network
# start docker container
cd deploy/docker
# https://www.weiyuai.cn/docs/zh-CN/docs/deploy/docker
# pull image from aliyun
docker pull registry.cn-hangzhou.aliyuncs.com/bytedesk/bytedesk:latest
# or pull image from docker hub
docker pull bytedesk/bytedesk:latest
# start docker compose container, -f flag to specify file path, -d flag to start container in background mode
docker compose -f docker-compose.yaml up -d
# stop container
docker compose -f docker-compose.yaml stop
```

## Getting Started
Expand Down
49 changes: 9 additions & 40 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,46 +61,15 @@
## Docker

```bash
# 1. 创建网络
docker network create bytedesk-network

# 2. 启动 MySQL
docker run -d \
--name mysql-bytedesk \
--network bytedesk-network \
-e MYSQL_DATABASE=bytedesk_im \
-e MYSQL_ROOT_PASSWORD=r8FqfdbWUaN3 \
-p 3306:3306 \
-v mysql_data:/var/lib/mysql \
mysql:latest

# 3. 启动 Redis
docker run -d \
--name redis-bytedesk \
--network bytedesk-network \
-p 6379:6379 \
-v redis_data:/data \
redis/redis-stack-server:latest \
/bin/sh -c "redis-server --requirepass qfRxz3tVT8Nh"

# 4. 启动 Bytedesk
docker run -d \
--name bytedesk \
--network bytedesk-network \
-p 9003:9003 \
-p 9885:9885 \
-v upload_data:/app/uploads \
-e SPRING_DATASOURCE_URL=jdbc:mysql://mysql-bytedesk:3306/bytedesk_im \
-e SPRING_DATASOURCE_USERNAME=root \
-e SPRING_DATASOURCE_PASSWORD=r8FqfdbWUaN3 \
-e SPRING_DATA_REDIS_HOST=redis-bytedesk \
-e SPRING_DATA_REDIS_PASSWORD=qfRxz3tVT8Nh \
registry.cn-hangzhou.aliyuncs.com/bytedesk/bytedesk:latest

# 停止和删除命令
# docker stop bytedesk redis-bytedesk mysql-bytedesk
# docker rm bytedesk redis-bytedesk mysql-bytedesk
# docker network rm bytedesk-network
# https://www.weiyuai.cn/docs/zh-CN/docs/deploy/docker
# 拉取阿里云镜像
docker pull registry.cn-hangzhou.aliyuncs.com/bytedesk/bytedesk:latest
# 或拉取docker hub镜像
docker pull bytedesk/bytedesk:latest
# 启动docker compose容器, -f标志来指定文件路径, -d标志表示在后台模式下启动容器
docker compose -f docker-compose.yaml up -d
# stop container
docker compose -f docker-compose.yaml stop
```

## 快速开始
Expand Down

0 comments on commit 58da0e8

Please sign in to comment.