1
0
forked from lxh/go-wxhelper
go-wxhelper/docker-compose.yaml

47 lines
1.0 KiB
YAML
Raw Normal View History

version: '3'
services:
2023-10-27 14:59:43 +08:00
wechat:
image: lxh01/wxhelper-docker:3.9.5.81
container_name: gw-wechat
restart: unless-stopped
volumes:
- ./data/wechat:/home/app/.wine/drive_c/users/app/Documents/WeChat\ Files
ports:
- "8080:8080"
- "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
2023-10-31 14:51:34 +08:00
depends_on:
- wechat
2023-10-27 14:59:43 +08:00
environment:
- MYSQL_ROOT_PASSWORD=wechat
- MYSQL_USER=wechat
- MYSQL_PASSWORD=wechat
- MYSQL_DATABASE=wechat
volumes:
- ./data/db:/var/lib/mysql
wxhelper:
image: gitee.ltd/lxh/go-wxhelper:latest
2023-10-27 14:59:43 +08:00
container_name: gw-service
restart: unless-stopped
2023-10-31 14:51:34 +08:00
depends_on:
- mysql
volumes:
# 配置文件请参阅项目根目录的config.yaml文件
- ./config/config.yaml:/app/config.yaml
ports:
- "19099:19099"