-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 916 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3.7'
services:
apiserver:
image: eatmoreapple/wxapiserver:latest
container_name: apiserver
restart: unless-stopped
tty: true
ports:
- "19089:19089"
- "8080:8080"
environment:
- WINEDEBUG=fixme-all
- TZ=Asia/Shanghai
- GIN_MODE=release
- TEMP_DIR=/home/app/.wine/drive_c/data
- MSG_QUEUE_ADDR=redis:6379 # redis 消息队列地址
- VIRTUAL_MACHINE_URL=http://localhost:19088
- REDIS_ADDR=redis:6379
volumes:
- ./data/data:/home/app/.wine/drive_c/data
- ./data/wechat:/home/app/.wine/drive_c/users/app/Documents/WeChat\ Files
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:19088/api/checkLogin" ]
interval: 30s
timeout: 20s # 一般是20s旁边完成注入
retries: 3
redis:
image: redis:alpine
restart: unless-stopped
volumes:
- ./data/redis:/data