Thomas Bruederli ef6dfbea21 Add example docker-compose files
... for all variants of Roundcube images.

relates to issue #99
2020-10-05 22:54:03 +02:00
..
2020-10-05 22:54:03 +02:00

Roundcube Docker Examples

This folder contains a few docker-compose files to spin up a Roundcube webmail webserver using the three different variants of images we provide.

Simple Roundcube with Apache and SQLite DB

See docker-compose-simple.yaml.

Directly serves Roundcube webmail via HTTP. The Roundcube sources and the database file are stored on connected volumes.

Standalone Roundcube with Apache using a MySQL DB

See docker-compose-mysql.yaml.

Directly serves Roundcube webmail via HTTP and connects to a MySQL database container. The Roundcube sources and the database files are stored on connected volumes.

Roundcube served from PHP-FPM via Nginx using a Postrgres DB

See docker-compose-fpm.yaml or docker-compose-fpm-alpine.yaml.

An Nginx webserver serves Roundcube from a PHP-FPM container via CGI and static files from the shared Roundcube sources. A Posrgres database container is used to store Roundcube's session and user data. The Roundcube sources and the database files are stored on connected volumes.

Installing Roundcube Plugins

With the latest updates, the Roundcube images contain the Composer binary which is used to install plugins. You can add and activate plugins by executing composer.phar require <package-name> inside a running Roundcube container:

$ docker exec -it roundcubemail composer.phar require johndoh/contextmenu --update-no-dev

If you have mounted the container's volume /var/www/html the plugins installed persist on your host system. Otherwise they need to be (re-)installed every time you update or restart the Roundcube container.