# ============================================================ # Email Sync OAuth2 - Docker Compose # ============================================================ # Multi-account IMAP sync with OAuth2 support for # Office 365, Hotmail, Outlook.com, and Gmail. # ============================================================ services: imapsync: build: context: . dockerfile: Dockerfile container_name: email-sync-oauth2 restart: unless-stopped # Pass every ACCOUNT_N_* entry from .env, not only accounts 1 and 2. env_file: - path: .env required: false volumes: - ./tokens:${TOKEN_DIR:-/tokens} - ./logs:${LOG_DIR:-/var/log/imapsync} # Healthcheck is defined in Dockerfile logging: driver: json-file options: max-size: "10m" max-file: "3"