version: '3.8' services: outlook-mail-system: build: . container_name: outlook-mail-automation network_mode: host volumes: - ./config.txt:/app/config.txt - ./data:/app/data - ./logs:/app/logs environment: - ADMIN_TOKEN=${ADMIN_TOKEN:-admin123} - TZ=Asia/Shanghai restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5001/"] interval: 30s timeout: 10s retries: 3 start_period: 40s