From ead2e06c4c0ee88acf2cfabd1aa8db72124e8af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Tue, 31 Oct 2023 15:12:15 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=96=87=E6=A1=A3=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 8 +++++--- readme.md | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 4fd0082..92a04bf 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,10 +1,12 @@ -version: '3' +version: '3.9' services: wechat: image: lxh01/wxhelper-docker:3.9.5.81 container_name: gw-wechat restart: unless-stopped + environment: + - WINEDEBUG=fixme-all volumes: - ./data/wechat:/home/app/.wine/drive_c/users/app/Documents/WeChat\ Files ports: @@ -22,7 +24,8 @@ services: container_name: gw-db restart: unless-stopped depends_on: - - wechat + wechat: + condition: service_healthy environment: - MYSQL_ROOT_PASSWORD=wechat - MYSQL_USER=wechat @@ -43,4 +46,3 @@ services: - ./config/config.yaml:/app/config.yaml ports: - "19099:19099" - diff --git a/readme.md b/readme.md index 8d2f98b..eda2e68 100644 --- a/readme.md +++ b/readme.md @@ -45,13 +45,15 @@ task: 2. 创建`docker-compose.yaml`文件 ```yaml -version: '3' +version: '3.9' services: wechat: image: lxh01/wxhelper-docker:3.9.5.81 container_name: gw-wechat restart: unless-stopped + environment: + - WINEDEBUG=fixme-all volumes: - ./data/wechat:/home/app/.wine/drive_c/users/app/Documents/WeChat\ Files ports: @@ -69,7 +71,8 @@ services: container_name: gw-db restart: unless-stopped depends_on: - - wechat + wechat: + condition: service_healthy environment: - MYSQL_ROOT_PASSWORD=wechat - MYSQL_USER=wechat