docker run --rm \
--network backend \
--name roundcube \
-P \
jnbt/roundcube
In case you want to automatically create the MySQL database layout run the container with app:init
:
docker run --rm -it \
--network backend \
jnbt/roundcube \
app:init
NOTE: This must be used in iteractive mode, as you may have to answer questions of the CLI.
The typical environment variables for MySQL are available:
-e MYSQL_HOST=roundcube
-e MYSQL_USER=roundcube
-e MYSQL_DATABASE=roundcube
-e MYSQL_PASSWORD=roundcube
You can configure all simple Roundcube configuration options
using enviroment variables prefixed with RC_
.
Example: Using TLS to connect via IMAP, SMTP, MANAGESIEVE to a (linked) host mail
:
-e RC_DEFAULT_HOST=tls://mail
-e RC_SMTP_SERVER=tls://mail
-e RC_MANAGESIEVE_HOST=tls://mail
In case you need a more complex configuration, e.g. setting plugins
,
you can mount a directory holding further php-based configuration files:
-v /path/to/config/folder:/var/www/html/config/custom:ro
Where a custom config file could be /path/to/config/folder/user.inc.php
:
<?php
// List of active plugins (in plugins/ directory)
$config['plugins'] = array('managesieve', 'archive', 'show_additional_headers');
You can update the Roundcube version by using the matching tag of this docker image:
-
Shutdown the running instance:
docker stop roundcube
-
Use the new version to update the database.
docker run --rm -it \ --network backend \ jnbt/roundcube:$VERSION \ app:update
NOTE: This must be used in iteractive mode, as you may have to answer questions of the CLI.
-
Start the new version:
docker run --rm \ --network backend \ --name roundcube \ -P \ jnbt/roundcube
Makefile
: BumpVERSION
Dockerfile
: BumpROUNDCUBE_VERSION
andRELEASE_DATE
README.md
: Bump versions inSoftware
section- Run
make release