HUB
Sign inSign up
roundcube logo

webkutir/roundcube

By webkutir

•Updated 20 days ago

Docker image for Roundcube Webmail served by nginx and PHP

Image
Web servers
0

929

webkutir/roundcube repository overview

Roundcube Webmail served by nginx and PHP.

⁠Image

  • Base image: ubuntu:26.10
  • PHP 8.5 and PHP-FPM from Ubuntu, with MySQL and PostgreSQL drivers
  • Roundcube Webmail 1.7.6, downloaded from the official release and checked with SHA-256 during the build
  • nginx in front of PHP-FPM
  • Elastic skin
  • Locale en_GB.UTF-8, container timezone Asia/Dhaka

⁠Configuration in this image

  • The Roundcube installer is disabled
  • nginx directory listings are off
  • PHP does not display errors
  • IMAP and SMTP use TLS and verify the server certificate
  • Set RC_TLS_PEER_NAME to the name on the mail certificate when that name differs from RC_IMAP_SERVER_NAME
  • Enabled plugins: archive, attachment reminder, enigma, filesystem attachments, help, jqueryui, new mail notifier, zipdownload
  • The password plugin stays off unless USE_PASSWORD_PLUGIN is set. Password changes call doveadm, which this image does not include

nginx listens on VIRTUAL_PORT. The Dockerfile exposes ports 80 and 443.

⁠Required environment

VariablePurpose
RC_DB_TYPEmysql or pgsql
RC_DB_HOSTDatabase host
RC_DB_USERDatabase user
RC_DB_PASSWORDDatabase password
RC_DB_NAMEDatabase name
RC_DES_KEY24-character key used to encrypt the IMAP password in the session
RC_IMAP_SERVER_NAMEIMAP host. The image connects with tls://
RC_SMTP_SERVER_NAMESMTP host. The image connects with tls://
VIRTUAL_PORTPort nginx listens on

⁠Optional environment

VariablePurpose
RC_TLS_PEER_NAMECertificate name to verify. Defaults to RC_IMAP_SERVER_NAME
RC_DEFAULT_DOMAINDomain appended when a user logs in with a name only
RC_BANNERName on the login screen. Default: Roundcube Webmail
RC_SUPPORT_URLSupport link
RC_ENABLE_SPELLCHECKSpellcheck
USE_PASSWORD_PLUGINTurn on the password plugin
VIRTUAL_ROOTWeb root. Default: /var/www/html
VIRTUAL_SERVERNAMEnginx server_name. Use none to omit it

⁠Run

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
Tag summary
Recent tags
Content type
Image
Digest
sha256:b1d0c0af0…
Size
337.7 MB
Last updated
20 days ago
docker pull webkutir/roundcube:latest