version: '3.8'
services:
mcp4agent:
build: .
container_name: mcp4agent
ports:
- "8080:8080"
- "8081:8081"
environment:
- WECHAT_APP_ID=${WECHAT_APP_ID}
- WECHAT_APP_SECRET=${WECHAT_APP_SECRET}
- WECHAT_TOKEN_CACHE_DIR=/app/.cache
volumes:
- cache_data:/app/.cache
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.socket(); s.connect(('localhost', 8080)); s.close()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
cache_data: