Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions apisix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,13 @@ docker network create default_network

### 2. Start Dependencies

Start etcd, MySQL, Nacos, and APISIX in order:
Start etcd, Nacos, and APISIX in order:

```bash
# Start etcd (APISIX configuration center)
cd ./deploy/etcd-compose
docker compose up -d

# Start MySQL (Nacos database)
cd ../mysql5.7-compose
docker compose up -d

# Wait for MySQL to be ready (~10 seconds)
sleep 10

# Start Nacos
cd ../nacos2.0.3-compose
docker compose up -d
Expand All @@ -65,6 +58,8 @@ docker compose up -d
cd ../../
```

> **Note**: This sample runs Nacos in standalone mode with embedded Derby (`SPRING_DATASOURCE_PLATFORM=derby` in `nacos2.0.3-compose/docker-compose.yml`), so **no external MySQL is required for the demo**. A `mysql5.7-compose` directory is kept for users who want a production-like setup; to enable it, start the MySQL compose first and uncomment the MySQL-related env vars in the Nacos compose file.

### 3. Build and Start Dubbo-Go Service

```bash
Expand Down
11 changes: 3 additions & 8 deletions apisix/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,13 @@ docker network create default_network

### 2. 启动依赖服务

按顺序启动 etcd、MySQL、Nacos 和 APISIX:
按顺序启动 etcd、Nacos 和 APISIX:

```bash
# 启动 etcd (APISIX 的配置中心)
cd ./deploy/etcd-compose
docker compose up -d

# 启动 MySQL (Nacos 的数据库)
cd ../mysql5.7-compose
docker compose up -d

# 等待 MySQL 启动完成 (约10秒)
sleep 10

# 启动 Nacos
cd ../nacos2.0.3-compose
docker compose up -d
Expand All @@ -65,6 +58,8 @@ docker compose up -d
cd ../../
```

> **说明**:本示例的 Nacos 以 standalone 模式运行,使用内嵌 Derby(见 `nacos2.0.3-compose/docker-compose.yml` 中的 `SPRING_DATASOURCE_PLATFORM=derby`),**演示场景下无需启动外部 MySQL**。仓库里仍保留 `mysql5.7-compose` 目录,供希望使用生产级持久化的用户参考;如需启用,先用该目录的 compose 启动 MySQL,再在 Nacos 的 compose 里取消注释 MySQL 相关的环境变量即可。

### 3. 构建并启动 Dubbo-Go 服务

```bash
Expand Down
Loading