An alpine image with imapnotify and mbsync, configured specifically to backup emails from Gmail using OAUTH2.
imap.env
[email protected]
CLIENT_ID="oauth client id"
CLIENT_SECRET="oauth secret"
REFRESH_TOKEN="oauth refresh token"
docker-compose.yaml
version: '3.8'
secrets:
IMAP_AUTH:
file: imap.env
services:
imapsync:
image: nikarh/fileserver-imapsync
user: 1000:1000
environment:
# Mail will be synced to /home/${USERNAME}/mail
# Useful if the volume is also used with dovecot and multiple user mailboxes
USERNAME: test
volumes:
- mail-data:/home
secrets:
- IMAP_AUTH
This docker image is rebuilt automatically weekly with latest alpine base image and latest dependencies. This can lead to broken images in case the packages installed are not backward compatible in their configs or behavior.
Content type
Image
Digest
sha256:da48f7324…
Size
10.9 MB
Last updated
3 days ago
docker pull nikarh/fileserver-imapsync