---
services:
  offlineimap:
    image: registry.tobiasmanske.de/offlineimap:latest
    volumes:
      - ./offlineimap.conf:/root/.offlineimaprc:ro,Z
      - maildata:/data
    restart: unless-stopped

volumes:
  maildata:
...