1
0
forked from lxh/go-wxhelper

📝 文档完善

This commit is contained in:
李寻欢 2023-10-31 14:51:34 +08:00
parent 1611019673
commit 51078eba12
2 changed files with 26 additions and 2 deletions

View File

@ -10,11 +10,19 @@ services:
ports:
- "8080:8080"
- "19088:19088"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:19088/api/checkLogin"]
interval: 60s
timeout: 10s
retries: 5
mysql:
image: mysql:8
container_name: gw-db
restart: unless-stopped
depends_on:
- wechat
environment:
- MYSQL_ROOT_PASSWORD=wechat
- MYSQL_USER=wechat
@ -28,6 +36,8 @@ services:
image: gitee.ltd/lxh/go-wxhelper:latest
container_name: gw-service
restart: unless-stopped
depends_on:
- mysql
volumes:
# 配置文件请参阅项目根目录的config.yaml文件
- ./config/config.yaml:/app/config.yaml

View File

@ -57,11 +57,19 @@ services:
ports:
- "8080:8080"
- "19088:19088"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:19088/api/checkLogin"]
interval: 60s
timeout: 10s
retries: 5
mysql:
image: mysql:8
container_name: gw-db
restart: unless-stopped
depends_on:
- wechat
environment:
- MYSQL_ROOT_PASSWORD=wechat
- MYSQL_USER=wechat
@ -75,18 +83,24 @@ services:
image: gitee.ltd/lxh/go-wxhelper:latest
container_name: gw-service
restart: unless-stopped
depends_on:
- mysql
volumes:
# 配置文件请参阅项目根目录的config.yaml文件
- ./config/config.yaml:/app/config.yaml
ports:
- "19099:19099"
```
3. 启动
3. 启动
`这玩意儿有点儿不完善先启动wechat确定启动起来了再启动剩余的`
```shell
# 以下命令选个能用的就行
docker-compose up -d # 老版本
docker compose up -d # 新版本
# 分顺序启动
docker compose up -d wechat # 1. 启动微信
docker compose up -d # 启动剩余的
```