services: mbsync: image: theohbrothers/docker-isync:latest container_name: mbsync restart: unless-stopped user: "1000:100" environment: GMAIL_USER: ${GMAIL_USER} GMAIL_PASS: ${GMAIL_PASS} volumes: - ./volumes/vmail:/mail - ./config/mbsyncrc:/mbsyncrc:ro command: < sh -c 'while true; do echo "[$(date)] Running sync..."; /sync; echo "[$(date)] Sync finished. Sleeping..."; sleep 1800; done'