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