Docker image for Roundcube Webmail served by nginx and PHP
929
Roundcube Webmail served by nginx and PHP.
ubuntu:26.10en_GB.UTF-8, container timezone Asia/DhakaRC_TLS_PEER_NAME to the name on the mail certificate when that name differs from RC_IMAP_SERVER_NAMEUSE_PASSWORD_PLUGIN is set. Password changes call doveadm, which this image does not includenginx listens on VIRTUAL_PORT. The Dockerfile exposes ports 80 and 443.
| Variable | Purpose |
|---|---|
RC_DB_TYPE | mysql or pgsql |
RC_DB_HOST | Database host |
RC_DB_USER | Database user |
RC_DB_PASSWORD | Database password |
RC_DB_NAME | Database name |
RC_DES_KEY | 24-character key used to encrypt the IMAP password in the session |
RC_IMAP_SERVER_NAME | IMAP host. The image connects with tls:// |
RC_SMTP_SERVER_NAME | SMTP host. The image connects with tls:// |
VIRTUAL_PORT | Port nginx listens on |
| Variable | Purpose |
|---|---|
RC_TLS_PEER_NAME | Certificate name to verify. Defaults to RC_IMAP_SERVER_NAME |
RC_DEFAULT_DOMAIN | Domain appended when a user logs in with a name only |
RC_BANNER | Name on the login screen. Default: Roundcube Webmail |
RC_SUPPORT_URL | Support link |
RC_ENABLE_SPELLCHECK | Spellcheck |
USE_PASSWORD_PLUGIN | Turn on the password plugin |
VIRTUAL_ROOT | Web root. Default: /var/www/html |
VIRTUAL_SERVERNAME | nginx server_name. Use none to omit it |
docker run -d --name roundcube \
-p 8080:3000 \
-e VIRTUAL_PORT=3000 \
-e RC_DB_TYPE=mysql \
-e RC_DB_HOST=mariadb \
-e RC_DB_USER=roundcube \
-e RC_DB_PASSWORD=change-me \
-e RC_DB_NAME=roundcube \
-e RC_DES_KEY=change-me-24-characters \
-e RC_IMAP_SERVER_NAME=mail.example.com \
-e RC_SMTP_SERVER_NAME=mail.example.com \
-e RC_TLS_PEER_NAME=mail.example.com \
webkutir/roundcube:1.7.6
docker pull webkutir/roundcube:latest