2023-10-31 15:12:15 +08:00
|
|
|
version: '3.9'
|
2023-10-26 10:10:48 +08:00
|
|
|
|
|
|
|
services:
|
2023-10-27 14:59:43 +08:00
|
|
|
wechat:
|
2024-01-09 10:48:21 +08:00
|
|
|
image: lxh01/wxhelper-docker:3.9.5.81-v11
|
2023-10-27 14:59:43 +08:00
|
|
|
container_name: gw-wechat
|
|
|
|
restart: unless-stopped
|
2023-10-31 15:12:15 +08:00
|
|
|
environment:
|
|
|
|
- WINEDEBUG=fixme-all
|
2023-10-27 14:59:43 +08:00
|
|
|
volumes:
|
|
|
|
- ./data/wechat:/home/app/.wine/drive_c/users/app/Documents/WeChat\ Files
|
|
|
|
ports:
|
2024-01-09 10:48:21 +08:00
|
|
|
- "19087:8080"
|
2023-10-27 14:59:43 +08:00
|
|
|
- "19088:19088"
|
2023-10-31 14:51:34 +08:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:19088/api/checkLogin"]
|
|
|
|
interval: 60s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
|
|
|
|
2023-10-27 14:59:43 +08:00
|
|
|
|
|
|
|
mysql:
|
|
|
|
image: mysql:8
|
|
|
|
container_name: gw-db
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=wechat
|
|
|
|
- MYSQL_USER=wechat
|
|
|
|
- MYSQL_PASSWORD=wechat
|
|
|
|
- MYSQL_DATABASE=wechat
|
|
|
|
volumes:
|
|
|
|
- ./data/db:/var/lib/mysql
|
|
|
|
|
|
|
|
|
2023-10-26 10:10:48 +08:00
|
|
|
wxhelper:
|
|
|
|
image: gitee.ltd/lxh/go-wxhelper:latest
|
2023-10-27 14:59:43 +08:00
|
|
|
container_name: gw-service
|
2023-10-26 10:10:48 +08:00
|
|
|
restart: unless-stopped
|
2023-10-31 14:51:34 +08:00
|
|
|
depends_on:
|
|
|
|
- mysql
|
2024-04-09 14:42:47 +08:00
|
|
|
- wechat
|
2023-10-26 10:10:48 +08:00
|
|
|
volumes:
|
|
|
|
# 配置文件请参阅项目根目录的config.yaml文件
|
|
|
|
- ./config/config.yaml:/app/config.yaml
|
|
|
|
ports:
|
|
|
|
- "19099:19099"
|