Roundcube docker container with nginx and php-fpm
  • Dockerfile 83.1%
  • Shell 16.9%
Find a file
2026-02-13 22:49:48 +02:00
.gitignore Update .gitignore 2026-02-13 22:31:14 +02:00
config.inc.php.tmpl Create a template configuration file for roundcube which will get actually valued with environment variables 2026-02-13 22:34:55 +02:00
Containerfile Add envsubst and openssl as apk dependencies to Containerfile 2026-02-13 22:32:32 +02:00
entrypoint.sh Update entrypoint.sh script 2026-02-13 22:35:18 +02:00
fpm.conf Create php-fpm configuration file 2026-02-13 20:25:59 +02:00
nginx.conf Modify nginx.conf configuration so that it would serve files from /var/www/roundcube/public_html 2026-02-13 22:31:38 +02:00
README.md Update README.md 2026-02-13 22:49:48 +02:00
supervisord.conf Add supervisord configuration file 2026-02-13 20:26:16 +02:00

Roundcube Docker container

This repository provides a Dockerfile which builds a ready to use Roundcube container with Nginx webserver. In addition, this container only contains support for PostgreSQL databases and does not contain support for other database management systems

Getting started

First you should build and tag the container. By default, the included Containerfile pulls Roundcube version 1.6.13, verifies it and extracts it to appropriate location.

$ docker build -t registry.example.com/roundcube:v1.6.13 . -f Containerfile

After the container building has finished, you can spin up the container using following commands:

$ docker run \
    -p 127.0.0.1:8080:80 \
    -v ./_volume/logs/nginx:/var/log/nginx \
    -v ./_volume/roundcube:/var/www/roundcube \
    -v ./_volume/pgp:/var/pgp \
    -e POSTGRES_USER=roundcube \
    -e POSTGRES_PASSSWORD=password \
    -e POSTGRES_HOST=postgres \
    -e POSTGRES_DB=roundcube \
    -e IMAP_HOST=ssl://mail.example.com:993 \
    -e SMTP_HOST=tls://mail.example.com:587 \
    registry.example.com/roundcube:v1.6.13