Skip to content
English

Container installation (Docker Compose)

Besides the grommunio Appliance and a manual installation, grommunio runs in containers. The gromox-container project provides the images and a Docker Compose deployment for a single host. For Kubernetes, the same images are deployed with a Helm chart, see Kubernetes.

The images are based on openSUSE Leap 16.0 and install the grommunio packages from the official repositories. Inside each container, supervisord manages the services. The databases run in separate MariaDB 11 containers.

ContainerImagePurpose
gromox-coregromox-coreGroupware services: nginx, Postfix, the Gromox daemons (http, imap, pop3, delivery, delivery-queue, zcore, midb, event), Admin API, antispam (rspamd), grommunio Chat, PHP-FPM, Redis, saslauthd, cron
gromox-archivegromox-archivegrommunio Archive: archive daemon, archive SMTP receiver, Sphinx search and indexers, nginx, PHP-FPM
gromox-officegromox-officegrommunio Files and grommunio Office: document server, converter, RabbitMQ, nginx, PHP-FPM, Redis, cron
gromox-dbmariadb:11Core database grommunio
chat-db, files-db, office-db, archive-dbmariadb:11Databases of Chat, Files, Office and Archive

All containers share the Compose network grommunio. Only gromox-core publishes ports on the host; its nginx proxies /files, /office and /archive to the other containers.

The service containers need no privileged: true, no SYS_ADMIN capability and no special runtime. All listeners that are reachable from outside a container use ports above 1024; Compose maps the standard ports on the host to them (see Ports).

  • Docker Engine with Docker Compose v2.24 or newer (docker compose version)
  • At least 4 GB RAM for gromox-core, 8 GB with grommunio Office
  • A DNS name (FQDN) that resolves to the host. For Let's Encrypt certificates, port 80 must be reachable from the internet.
  • The host ports listed under Ports must be free.

SELinux hosts (openSUSE Leap 16, Fedora, RHEL) need no extra steps: the only bind mount, ./gromox_letsencrypt, is declared with the z label.

  1. Get the project:

    Terminal window
    git clone https://github.com/grommunio/gromox-container.git
    cd gromox-container
  2. Create var.local.env with your own values. var.env holds the defaults and is tracked in git; do not edit it. var.local.env is ignored by git, read after var.env and overrides it:

    Terminal window
    cat > var.local.env <<'ENV'
    FQDN=mail.example.com
    DOMAIN=example.com
    ADMIN_PASS=ChangeMe
    CHAT_ADMIN_PASS=ChangeMe
    FILES_ADMIN_PASS=ChangeMe
    SSL_INSTALL_TYPE=2
    ENV
  3. Set the database passwords. In docker-compose.yml, change MARIADB_PASSWORD and MARIADB_ROOT_PASSWORD of the five MariaDB services, and set the matching values in var.local.env:

    MariaDB serviceVariables in var.local.env
    gromox-dbMYSQL_PASS, MYSQL_ROOT_PASS (root password, only used with CLEAR_DBS=true)
    chat-dbCHAT_MYSQL_PASS
    files-dbFILES_MYSQL_PASS
    office-dbOFFICE_MYSQL_PASS
    archive-dbARCHIVE_MYSQL_PASS

    MariaDB applies these passwords only when it initializes an empty data volume. Set them before the first start.

  4. Start the stack:

    Terminal window
    docker compose up -d

    The first start takes several minutes while the containers initialize the databases, create the certificate and configure the services. Follow the progress with docker compose logs -f gromox-core. docker compose ps reports each container as healthy once all of its services run.

ServiceURL
grommunio Webhttps://<FQDN>/
Admin UIhttps://<FQDN>:8443/
Exchange ActiveSynchttps://<FQDN>/Microsoft-Server-ActiveSync
CalDAV / CardDAVhttps://<FQDN>/dav/
grommunio Chat (if enabled)https://<FQDN>/chat/
grommunio Files (if enabled)https://<FQDN>/files/
grommunio Archive (if enabled)https://<FQDN>/archive/

Sign in to the Admin UI as admin with the password from ADMIN_PASS, then create a domain and users. Users sign in to grommunio Web, IMAP and SMTP with their e-mail address. grommunio Archive has the built-in accounts admin@local and auditor@local.

Instead of building the images locally, you can pull signed images from the grommunio container registry at container.grommunio.com:

ProjectAccessBuilt from
community/public, no logingrommunio community packages
supported/grommunio subscription customersgrommunio supported packages

Both projects contain gromox-core, gromox-archive and gromox-office. The tag 2026.11 points to the newest build of that release; see Container registry for the tag scheme, pull credentials and air-gapped installations.

  1. Verify the signature of each image with cosign and the public key cosign.pub from the gromox-container repository:

    Terminal window
    cosign verify --key cosign.pub container.grommunio.com/community/gromox-core:2026.11
    cosign verify --key cosign.pub container.grommunio.com/community/gromox-archive:2026.11
    cosign verify --key cosign.pub container.grommunio.com/community/gromox-office:2026.11
  2. For the supported/ images, log in with your grommunio subscription credentials (the same as for the supported package repositories):

    Terminal window
    docker login container.grommunio.com -u '<subscription user>'
  3. In docker-compose.yml, replace the build: block of gromox-core, gromox-archive and gromox-office with an image: line:

    services:
    gromox-core:
    image: container.grommunio.com/community/gromox-core:2026.11
    container_name: gromox-core
    # ... rest unchanged
    gromox-archive:
    image: container.grommunio.com/community/gromox-archive:2026.11
    # ...
    gromox-office:
    image: container.grommunio.com/community/gromox-office:2026.11
    # ...

    For subscription images use container.grommunio.com/supported/....

  4. Pull the images and start the stack:

    Terminal window
    docker compose pull
    docker compose up -d

For reproducible deployments, pin a build tag (2026.11-<YYYYMMDDhhmm>) or an image digest instead of the moving release tag.

All settings are environment variables. Compose passes them to the gromox-core, gromox-archive and gromox-office containers from these files, in this order (later files override earlier ones):

  1. var.env: defaults, tracked in git
  2. variables_data/var.env: optional, the location used by earlier versions
  3. var.local.env: optional, your settings, ignored by git

All three service containers read the same files, so feature flags and host names always match.

VariableDescriptionDefault in var.env
FQDNFully qualified host name of the server (required)placeholder, set your own
DOMAINMail domain (required)placeholder, set your own
ADMIN_PASSPassword of the grommunio admin user, also used for the rspamd web interface (required)admin
TIMEZONETime zone of the containersEurope/Vienna
RELAYHOSTOutbound SMTP relay as [host]:port; empty means direct deliveryempty
X500X.500 organization identifier; generated on the first start if empty

gromox-core does not start if FQDN, DOMAIN, ADMIN_PASS or MYSQL_PASS is empty.

VariablesDescriptionDefault in var.env
MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DBCore databasegromox-db, grommunio, default password, grommunio
MYSQL_ROOT_PASSRoot password of gromox-db, only needed with CLEAR_DBS=truedefault password
CHAT_MYSQL_HOST, CHAT_MYSQL_USER, CHAT_MYSQL_PASS, CHAT_MYSQL_DBgrommunio Chat databasechat-db, grochat, grommunio, grochat
FILES_MYSQL_HOST, FILES_MYSQL_USER, FILES_MYSQL_PASS, FILES_MYSQL_DBgrommunio Files databasefiles-db, grofiles, grommunio, grofiles
OFFICE_MYSQL_HOST, OFFICE_MYSQL_USER, OFFICE_MYSQL_PASS, OFFICE_MYSQL_DBgrommunio Office databaseoffice-db, groffice, grommunio, groffice
ARCHIVE_MYSQL_HOST, ARCHIVE_MYSQL_USER, ARCHIVE_MYSQL_PASS, ARCHIVE_MYSQL_DBgrommunio Archive databasearchive-db, groarchive, grommunio, groarchive

The values must match the MARIADB_* settings of the corresponding service in docker-compose.yml.

ComponentSwitch (default in var.env)Further variables
grommunio ChatENABLE_CHAT=trueCHAT_ADMIN_PASS (password of the Chat system admin admin), CHAT_CONFIG (default /etc/grommunio-chat/config.json)
grommunio FilesENABLE_FILES=trueFILES_ADMIN_PASS (Files admin admin), FILES_HOST (default gromox-office), TRUSTED_PROXIES (networks Files trusts as reverse proxies, default the Compose network)
grommunio OfficeENABLE_OFFICE=trueOFFICE_HOST (default gromox-office)
grommunio ArchiveENABLE_ARCHIVE=truesee below
Keycloak SSOENABLE_KEYCLOAK=falseKEYCLOAK_URL, KEYCLOAK_REALM, KEYCLOAK_CLIENT_ID, KEYCLOAK_CLIENT_SECRET

With ENABLE_CHAT=true, CHAT_MYSQL_PASS and CHAT_ADMIN_PASS must be set; with ENABLE_FILES=true, FILES_MYSQL_PASS and FILES_ADMIN_PASS; with ENABLE_OFFICE=true, OFFICE_MYSQL_PASS. gromox-archive always needs ARCHIVE_MYSQL_PASS.

grommunio Archive:

VariableDescriptionDefault
ARCHIVE_HOSTHost name of the archive containergromox-archive
ARCHIVE_ADMIN_PASSPassword of the built-in account admin@localvalue of ADMIN_PASS
ARCHIVE_AUDIT_PASSPassword of the built-in account auditor@localvalue of ADMIN_PASS
ARCHIVE_RETENTION_DAYSRetention of newly archived mail, in days2557 (7 years)
ARCHIVE_INDEXER_DELTA_INTERVALInterval of the Sphinx delta indexer (600, 10m, 1h)10m
ARCHIVE_INDEXER_MAIN_INTERVALInterval of the housekeeping run (index merge, purge, signing, statistics)24h
ARCHIVE_NEW_KEYtrue lets gromox-archive create a new encryption key although the archive database already references mails; those mails become unreadablefalse
VariableDescriptionDefault
SSL_INSTALL_TYPE0: certificate from a built-in CA; 2: Let's Encrypt; 3: own certificate0
SSL_BUNDLE, SSL_KEYType 3: paths inside gromox-core of the full-chain certificate and the private key
SSL_EMAILContact address for Let's Encryptadmin@<DOMAIN>
MAIL_DOMAINSAdditional names for the Let's Encrypt certificate, comma-separated

Built-in CA (0): gromox-core creates a local CA and issues a server certificate valid for 10 years. On a start within 30 days of its expiry, the certificate is renewed. All containers trust the CA. Install the CA certificate on your clients to avoid certificate warnings:

Terminal window
docker cp gromox-core:/etc/grommunio-common/ssl/ca.pem grommunio-ca.pem

Let's Encrypt (2): certbot requests the certificate on the first start; port 80 must be reachable from the internet. A cron job attempts the renewal every 12 hours, deploys a renewed certificate and restarts the TLS services. nginx is stopped only while a renewal actually runs. If certbot fails, an existing certificate is kept; without one, a certificate from the built-in CA is used and certbot is retried on later starts, at most once per hour.

Own certificate (3): mount the certificate and key into gromox-core, for example in a docker-compose.override.yml, and set the paths in var.local.env:

services:
gromox-core:
volumes:
- ./certs:/etc/grommunio-common/ssl/own:ro
SSL_INSTALL_TYPE=3
SSL_BUNDLE=/etc/grommunio-common/ssl/own/fullchain.pem
SSL_KEY=/etc/grommunio-common/ssl/own/privkey.pem

gromox-core copies the files into the shared certificate volume on every start. After replacing the certificate, run docker compose restart gromox-core gromox-archive gromox-office.

VariableDescriptionDefault
INDEX_SCHEDULEcron schedule of the full-text search index for grommunio Web (grommunio-index); empty disables it*/15 * * * *
FORCE_RECONFIGtrue re-runs the one-time initialization of gromox-core on the next start: certificate check, admin password set to ADMIN_PASS, Chat admin. The database initialization is not repeated.false
CLEAR_DBStrue drops and recreates a populated core database when the database initialization runs (first start with an empty gromox_config volume). Requires MYSQL_ROOT_PASS.false
CORE_HOSTHost name of gromox-core as seen from the archive and office containers (mail relay)gromox-core
LOGFILESetup log/var/log/grommunio-setup.log
Host portContainer portProtocolService
252525SMTPPostfix, inbound mail
808081HTTPnginx: Let's Encrypt challenges, redirect to HTTPS
4438443HTTPSnginx: grommunio Web, ActiveSync, DAV, Files, Office, Archive
4652465SMTPSPostfix, implicit TLS, authenticated submission
5872587SubmissionPostfix, STARTTLS, authenticated submission
9932993IMAPSGromox IMAP over TLS
1432143IMAPGromox IMAP, STARTTLS
9952995POP3SGromox POP3 over TLS
1102110POP3Gromox POP3, STARTTLS
84439443HTTPSAdmin UI

gromox-archive (8443, archive SMTP on 2693) and gromox-office (8443) are reachable on the Compose network only.

Everything that is not on a volume is regenerated from the environment on every start. Containers can therefore be recreated, for an image update or after a configuration change, without losing data.

VolumeMount pointContent
gromox/var/lib/gromoxMailboxes
gromox_config/etc/gromoxGromox configuration, X.500 identifier, initialization markers
cert_data/etc/grommunio-common/sslTLS certificate and key, shared by all containers
postfix_spool/var/spool/postfixMail queue
redis_data/var/lib/redisrspamd statistics (Bayes), greylisting, history
grommunio_admin_api/var/lib/grommunio-admin-apiAdmin API data
grommunio_admin_config/etc/grommunio-admin-apiAdmin API configuration (LDAP settings) and JWT signing key
grommunio_admin_license/etc/grommunio-admin-common/licenseUploaded license
grommunio_antispam/var/lib/grommunio-antispamAntispam data
grommunio_dav/var/lib/grommunio-davCalDAV/CardDAV synchronization state
grommunio_web/var/lib/grommunio-webgrommunio Web sessions and search indexes
grommunio_chat_config/etc/grommunio-chatChat configuration
grommunio_chat_data/var/lib/grommunio-chatChat uploads
files_data/var/lib/grommunio-filesFiles configuration and user data
office_data/var/lib/grommunio-officeOffice document cache and the Files/Office JWT secret
archive_data/var/lib/grommunio-archiveArchive store, search index and encryption key
opensuse_data, gromox_services/data, /home/gromox-servicesLegacy volumes
gromox_mysql_dataMariaDB data directoryCore database
chat_mysql_data, files_mysql_data, office_mysql_data, archive_mysql_dataMariaDB data directoryChat, Files, Office and Archive databases
./gromox_letsencrypt (bind mount)/etc/letsencryptLet's Encrypt account, certificates and renewal state

Compose prefixes the volume names with the project name: the volume gromox is called grommunio_gromox on the host.

Terminal window
docker compose ps # healthy = all services run
docker exec gromox-core supervisorctl status
docker exec gromox-archive supervisorctl status
docker exec gromox-office supervisorctl status
docker exec gromox-core supervisorctl restart postfix
docker compose logs gromox-core # entrypoint and configuration
docker exec gromox-core cat /var/log/grommunio-setup.log
docker exec gromox-core cat /var/log/supervisord.log
docker exec gromox-core tail -f /var/log/supervisor-postfix.log
docker exec gromox-core cat /var/log/supervisor-gromox-imap-err.log

Edit var.local.env and recreate the containers:

Terminal window
docker compose up -d

Settings derived from the environment (host names, feature flags, nginx, Postfix, Gromox and Files settings) are applied on every start, as are the passwords of the rspamd web interface (ADMIN_PASS) and of the Archive accounts admin@local and auditor@local. The passwords of the grommunio admin user and of the Chat and Files admins are set only once. To reset the admin password to ADMIN_PASS, set FORCE_RECONFIG=true, run docker compose up -d, and remove the setting again.

Dump the databases and archive the data volumes:

Terminal window
mkdir -p backup
for db in gromox-db chat-db files-db office-db archive-db; do
docker exec $db sh -c 'mariadb-dump --all-databases -uroot -p"$MARIADB_ROOT_PASSWORD"' > backup/$db.sql
done
for v in gromox gromox_config cert_data grommunio_admin_config grommunio_admin_license \
files_data archive_data grommunio_chat_config grommunio_chat_data redis_data; do
docker run --rm -v grommunio_$v:/data -v "$(pwd)/backup:/backup" busybox \
tar czf /backup/$v.tar.gz /data
done
tar czf backup/letsencrypt.tar.gz gromox_letsencrypt/

On SELinux hosts, append :z to the /backup mount. The archive_data volume holds the archive encryption key: without it, archived mail cannot be read. For consistent backups and single-mailbox restores, see Backup and restore.

With locally built images:

Terminal window
git pull
docker compose build --pull
docker compose up -d

With images from container.grommunio.com, change the tag in docker-compose.yml if you move to a new release, then:

Terminal window
docker compose pull
docker compose up -d

Schema upgrades run automatically on start: the Gromox schema through gromox-http, grommunio Files through occ upgrade, MariaDB through MARIADB_AUTO_UPGRADE.

Terminal window
docker compose down -v
docker compose up -d

docker compose build builds the images from the grommunio community packages. tools/publish-images.sh builds the three images for a channel and pushes them to your own registry, signed with your own cosign key:

Terminal window
cosign generate-key-pair
COSIGN_KEY=cosign.key COSIGN_PASSWORD=... \
tools/publish-images.sh -r registry.example.com -c community
tools/publish-images.sh -r registry.example.com --no-sign # push unsigned
tools/publish-images.sh -n -c community # build only
OptionEffect
-c community|supportedPackage channel
-r REGISTRYTarget registry
-t TAGRelease tag (default: the appVersion of the Helm chart)
-b BUILD_IDBuild suffix of the unique tag <TAG>-<BUILD_ID> (default: UTC date and time, YYYYMMDDhhmm)
-nBuild without pushing
--no-signPush without a cosign signature
--no-cacheRebuild every layer to pick up updated packages
--latestAlso tag latest
core archive officeComponents to build (default: all three)

Builds of the supported channel need the subscription credentials in zypper credentials format. They are passed as a BuildKit secret and are not stored in the image:

Terminal window
printf 'username=%s\npassword=%s\n' '<subscription user>' '<subscription password>' \
> supported.credentials
SUPPORTED_CREDENTIALS=$PWD/supported.credentials \
tools/publish-images.sh -r registry.example.com -c supported
  • The service containers run without privileged mode or added capabilities; all listeners reachable from outside a container use ports above 1024.
  • Images from container.grommunio.com are signed with cosign and scanned for known vulnerabilities; the registry serves only signed images. See Container registry.
  • Postfix (25, 465, 587) disables SSLv2, SSLv3, TLS 1.0 and TLS 1.1 and excludes aNULL, eNULL, EXP, MD5, RC4, DES, 3DES, DHE, EDH, kDHE, kEDH, ADH. The finite-field DHE key exchange is excluded; ECDHE suites with forward secrecy remain available.
  • Gromox http, imap and pop3 use tls_min_proto = tls1.2. TLS 1.2 remains enabled for mail clients that do not support TLS 1.3.
  • Postfix trusts (mynetworks) only loopback and the Compose network, without the network gateways through which Docker forwards connections from the host. All other clients must authenticate to relay mail.
  • The setup log is readable by root only.

Change all default passwords, restrict access to the Admin UI port 8443, and use Let's Encrypt or a certificate from your own CA in production.

SymptomCheck
Container restarts during the first startdocker compose logs gromox-core. The entrypoint exits when the database is unreachable or a required variable (FQDN, DOMAIN, passwords) is missing. docker compose ps shows whether the databases are healthy.
A service is in state FATALdocker exec gromox-core cat /var/log/supervisor-<service>-err.log
/files or /archive returns 502gromox-core proxies these paths to the other containers. Check that gromox-office and gromox-archive are healthy and that the ENABLE_* flags are set consistently.
Chat does not startChat runs only with ENABLE_CHAT=true and an existing CHAT_CONFIG: docker exec gromox-core supervisorctl status grommunio-chat
gromox-archive refuses to startThe archive database references mails, but the volume holds no encryption key. Restore the key, or set ARCHIVE_NEW_KEY=true to start a new archive store.
Let's Encrypt certificate missingPort 80 must be reachable from the internet and FQDN must resolve to the host. Until certbot succeeds, the built-in CA certificate is used.
A service does not accept connectionsdocker exec gromox-core ss -tlnp lists the listeners inside gromox-core. nginx listens on 8081, 8443, 9443 and, internally, 8080.

The Admin UI shows fetchmail settings, but fetchmail is not installed in the image; these settings have no effect.