Deploying midPoint with Docker Compose

Evolveum's Docker Compose gets midPoint and PostgreSQL running quickly, but a production setup needs deliberate choices on schema initialization, volumes, image tags and database operations.

On this page

When Docker Compose fits a midPoint deployment

If your team is evaluating midPoint or standing up a first environment and needs a repeatable container setup, the midPoint Docker Compose stack from Evolveum is a sensible starting point. It runs midPoint alongside a PostgreSQL repository, and the Compose setup initializes the repository schema in advance. After that, midPoint checks the database and imports its initial objects. That sequence matters because it means a rebuild of the stack follows the same path each time, which makes it easier to compare environments and to explain to a reviewer how the system came to exist. Compose suits a single host, a lab, a proof of concept or a small production footprint where one team owns the host and the containers, and where you accept that the stack runs on one machine.

Compose is a weaker fit when you need node-level redundancy, rolling upgrades across several midPoint nodes, or platform-level controls such as admission policies, secrets integration and standardized cluster operations. In those cases, a Kubernetes deployment or a VM install on Linux is usually the better match, and the choice should follow your existing platform standards rather than the convenience of a single file. Be aware of what the Compose file does not give you by default: a production-grade PostgreSQL topology, a separate audit database, backup and point-in-time recovery, TLS termination, network restrictions and monitoring. Ask Evolveum and your own platform team to confirm which of these the sample file covers in the release you plan to use, and plan for the rest before any real identity data arrives.

How the midPoint and PostgreSQL containers fit together

The diagram starts with the operator's Compose file, which defines two services on one private network. The PostgreSQL container owns a named volume for database files, and the schema initialization step prepares the repository schema before midPoint checks and imports its initial objects. The midPoint container keeps its home directory in a separate named volume, so configuration survives container replacement. Check that the database port is reachable only from the midPoint service and that both volumes are backed up.

Two Compose services, their named volumes and the network boundary around them.

Evaluation versus production settings

An evaluation stack is built to start quickly on one host with default values. The Compose file runs midPoint and PostgreSQL side by side, the repository schema is initialized automatically, and the data is expendable. That tradeoff is reasonable for learning the product, testing connectors and building a sample role model, but it should not be carried forward unchanged. Defaults are written for convenience, not for recovery, access control or auditability.

  • Single host: Both services share one machine, so a host failure stops identity governance and the database together.
  • Default credentials: Sample passwords in the example file are placeholders meant for a lab, not for a directory of real accounts.
  • Ephemeral data: Removing containers without persistent volumes deletes the repository, so treat every evaluation dataset as disposable.
  • Floating image tags: A tag that moves over time can change the release under you on the next pull.

Before reusing any evaluation file, confirm each default value against the midPoint in containers guidance and replace it deliberately.

Compose configuration options and when each fits

This table compares the four Compose decisions that shape a midPoint and PostgreSQL stack: image tags, the database container, storage mounts, and secret handling. Read each row against your own change control and hosting model, and treat the production column as the baseline to confirm with your team before go-live.

DecisionOption and when it fitsTrade-off to plan for
Image tagPinned tag for any environment that must be reproducible, such as test and production, changed only through a reviewed upgradeUpgrades become deliberate steps, and you must track the release notes for each tag you adopt
Image tagFloating tag for a disposable evaluation stack where you want the latest build on each pullRestarts can pull a different build than the one you tested, so do not use floating tags for production
Image tagConfirm the current tagging scheme with Evolveum before choosing, since the scheme changed in June 2026Tags you copied from older guides may no longer exist or may point to different releases
DatabaseBundled PostgreSQL container for a single-host evaluation or lab where the database is disposableBackups, major version upgrades and monitoring are left to you, and the database shares the host's failure domain
DatabaseDedicated PostgreSQL server outside the Compose file for production, with its own backups, patching and monitoringMore moving parts and network configuration, but the database lifecycle is independent of midPoint containers
StorageNamed volumes for the PostgreSQL data directory and midPoint home, managed by the container engineSimple to create, but backups and file inspection need engine-specific commands
StorageBind mounts to host paths for configuration files and exported objects that your team edits in Git or inspects directlyFile ownership and permissions must match the container user, and host paths must be backed up separately
SecretsEnvironment variables for a lab with no shared hosts, where the Compose file stays inside a private repositoryValues can appear in container inspection output, process listings and copied Compose files
SecretsFiles mounted into the container, or a secrets store feeding them, for production and shared hostsRequires a rotation procedure and file permissions, and the mount path must match what your image expects

Setup sequence with checks

This sequence takes a midPoint and PostgreSQL Docker Compose stack from a pinned release to a verified, persistent evaluation or pilot environment. Each step ends with a check so the team knows it can move on. Confirm the production hardening and sizing steps separately before treating the result as production.

  1. Confirm the release and Java requirements

    Before pulling anything, choose the midPoint release you intend to run and check its Java requirement in Evolveum's system requirements. Evolveum recommends Java 25 for version 4.11 and later (Java 21 supported) and Java 21 for 4.10 and older (Java 17 supported). Confirm that the image you select matches that runtime and that the release is still within its support window, since 4.9 support ends 18 October 2026. The check is a written note of the release, its Java version and its support end date, agreed by the platform owner.

  2. Pin the image tag

    Replace any floating or 'latest' reference in the Compose file with an explicit image tag for the release you confirmed. Evolveum changed its container image tagging strategy in June 2026, so read the current tag scheme in the containers documentation before choosing a value. Record the tag in version control next to the Compose file. The check is that docker compose config resolves to the pinned tag and that no service uses an untagged or moving image reference.

  3. Set the PostgreSQL version within support

    Set the PostgreSQL image version to one that is still supported under the PostgreSQL versioning policy: 14 (to November 12, 2026), 15, 16, 17 or 18 (final release November 14, 2030). Versions 13 and earlier are unsupported and should not be used for a new stack. Pick the version with the longest remaining support that your midPoint release accepts, and confirm that choice with Evolveum's repository requirements. The check is that the database service in the Compose file names a supported major version and that the value is recorded with the release.

  4. Start the database and confirm readiness

    Start only the PostgreSQL service first, using docker compose up -d for that service, and let it initialize its data directory. Confirm that the database accepts connections from the midPoint container's network and that the credentials are supplied from environment files or secrets rather than typed into the Compose file. The check is a successful connection test from a throwaway client on the same Compose network, and a pg_isready-style result that reports the server as ready.

  5. Let schema initialization run

    Start the midPoint service and allow Evolveum's Compose setup to initialize the repository schema in advance. Once the schema exists, midPoint checks it and imports its initial objects. Watch the container logs during this phase and do not restart the stack while the import is still running. The check is a log line showing that the schema was initialized and initial objects were imported, with no repeated errors about missing tables or failed object loads.

  6. Verify the initial import and first login

    Open the midPoint web interface, sign in with the initial administrator account, and confirm that the expected initial objects are visible, such as the default system configuration and administrator user. Check the health endpoint or status page the release documents for monitoring. The check is a successful login, the presence of the initial objects, and a clean startup log. If login fails, confirm the credentials from your environment file before changing the database.

  7. Confirm volume persistence by restarting

    Make a small, recognizable change in midPoint, such as creating a test object, then restart the containers with docker compose down followed by docker compose up -d, without removing volumes. Log in again and confirm that the test object and the configuration survive the restart. Also confirm that the database volume is mapped to a named or host path that your backup process covers. The check is that the test object is still present after restart and that docker volume ls or the host path shows the expected volumes, which must not be deleted by a routine restart.

How schema initialization and persistent volumes behave

Evolveum's Docker Compose setup initializes the repository schema in advance, and only after that does midPoint check the database and import its initial objects. This ordering matters for re-runs. When you start the stack again, the first thing to confirm is that the database already holds a schema and that midPoint is reusing it, not treating the environment as new. A restart should resume the existing repository and its objects. It should not reimport initial objects over data you have since changed, and it should not recreate the database. Read the Evolveum container documentation for the exact initialization steps in the release you deploy, and check the container logs from the first start so you know what the initialization actually did.

Data and midPoint home must live on persistent volumes. The PostgreSQL data directory holds every object, task and audit record, so it belongs on a named volume or a bind mount that survives docker compose down and container recreation. The midPoint home directory holds configuration, custom files and any connector material that the container does not ship. If either sits only in the container's writable layer, a recreate can silently return you to an empty or default state. Confirm the volume names and mount paths in your docker-compose.yml, and confirm that the Compose file does not use docker compose down -v in routine operations, because that flag removes named volumes.

After any container recreate or image change, verify rather than assume. Check that the midPoint login works with your existing administrator account, that the expected users, roles and resources are present, and that scheduled tasks are still defined and not duplicated. Confirm the PostgreSQL volume is mounted by inspecting the container, and confirm the midPoint home contents match what you backed up. Record the image tag that is running, because Evolveum changed its container image tagging strategy in June 2026, and a tag you pulled earlier may not refer to the build you expect. Keep this check as a written runbook step so that every recreate, upgrade and restore is confirmed the same way.

Security and operational considerations for Compose

A Compose file is quick to start and easy to copy, which is exactly why its defaults need review before a midPoint instance holds real identity data. The cards below cover the places where an evaluation setup usually differs from what a production team can accept: credentials, exposed ports, database authentication, backups, image provenance and the administrator account.

Secrets outside plain Compose files

Database passwords and midPoint credentials often end up as literal values in compose.yaml or in an .env file committed next to it. Anyone with read access to the repository then holds the keys to the identity store. Move these values into Docker secrets or your organization's secrets manager, restrict who can read the host files, and confirm that no evaluation credentials were reused in production. Ask Evolveum's current container documentation which environment variables accept file-based secrets before you rely on that pattern.

Containers docs

Port exposure for midPoint and PostgreSQL

Evaluation files often publish the midPoint web port and the PostgreSQL port on all host interfaces. Only the midPoint HTTP endpoint should be reachable from users or a load balancer, and the database port should stay on an internal Compose network with no published mapping. Check the host firewall as well as the ports section, because Docker can publish ports in ways that bypass some host firewall rules. Put TLS termination in front of midPoint and treat the admin console as an internal service.

PostgreSQL authentication with SCRAM

Set the PostgreSQL role that midPoint uses to password authentication with SCRAM rather than MD5, since PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM. Restrict access in pg_hba.conf to the midPoint container network and the specific database and role, and review the other methods PostgreSQL documents, such as certificate or LDAP authentication, against what your directory and security team can operate. Confirm the PostgreSQL major version you pin against the supported versions list before you choose a method.

Authentication methods

Backups and point-in-time recovery

A named volume is not a backup. Schedule base backups of the PostgreSQL data directory, archive write-ahead logs so you can recover to a chosen moment, and test a restore into a separate Compose project before go-live. For midPoint, a restored repository must match the audit data and the configuration files you keep elsewhere, so record which backup set goes with which configuration version. Ask your team who owns restore testing and how often it runs.

Continuous archiving docs

Image provenance and version pinning

Pin midPoint and PostgreSQL images to explicit tags or digests instead of floating tags such as latest. Evolveum changed its container image tagging strategy in June 2026, so check how the current tags map to releases before you write the pin, and record the digest you tested. Keep a note of which midPoint release line you run, because 4.8 is a long-term support release and 4.10 is a feature release with a shorter support window. Mirror approved images into your own registry and verify them before deployment.

midPoint releases

Administrator account access

The initial administrator credentials in a fresh midPoint instance must be changed before any network exposure, and the account should be used only for break-glass work. Create named administrator accounts with individual roles, enforce multifactor authentication where your SSO setup allows it, and log administrative actions. Confirm how the bootstrap admin account is initialized in your Compose version, and remove or lock it once named accounts are verified. The hardening checklist covers the detailed steps.

Moving from evaluation to production

The first step from evaluation to production is to move the database out of the Compose stack. The PostgreSQL container in the evaluation file is a convenience for a single host, so a production deployment needs a dedicated PostgreSQL server with its own backups, monitoring and patch schedule, and midPoint's system requirements recommend exactly that separation. Keep the config.xml repository section pointing at the external host, confirm that the schema initialization step still runs once against the new database, and confirm that the midPoint and audit databases are separated as the PostgreSQL repository topic describes. Then run a restore into a scratch environment before you trust the setup, because a backup that has never been restored is an assumption, not a control.

Upgrade planning comes next and should be settled before go-live. The supported midPoint lines differ in their end dates: 4.8 (Curie) is a long-term support release supported until 17 October 2028, 4.10 (Braille) is a feature release supported until 26 November 2027, and 4.9 support ends 18 October 2026. The 4.11 (Čapek) feature release is planned for 21 October 2026. Choose the line you will run for its supported life, and confirm with the midPoint releases page which versions you can step through to reach your target. Image tags also changed in June 2026, so pin exact versions in the Compose file rather than relying on a floating tag, and confirm the new tagging scheme in Evolveum's container documentation before you write your upgrade runbook.

Finally, decide when the single-host Compose model stops being enough. Stay on Compose while one node meets your availability and capacity needs and your team can rebuild the host from code. Move to Kubernetes or a multi-node cluster when you need several midPoint nodes behind a sticky load balancer, a shared central database, or cluster-wide task distribution, since those are the conditions the multi-node topic covers. Plan that move as a migration with its own rehearsal, not as an in-place change to the Compose host. Ask any partner for a written scope that includes the database split, a tested restore, the upgrade path for your chosen release line, and the cutover plan.

Questions teams ask before deploying midPoint with Compose

What drives the effort of a production midPoint Compose setup?

The effort depends less on the Compose file itself and more on what surrounds it. The main drivers are the PostgreSQL database and its backups, the persistent volumes and host hardening, the TLS and reverse proxy layer, the connectors you need to reach target systems, and the admin and identity decisions made before go-live. Evolveum's Docker Compose initializes the repository schema in advance, so the first start is simpler than building the database by hand. Ask for a written scope that lists each of these components, who owns each one, and which environments are included.

Can our internal team deploy midPoint with Compose alone?

A team with Linux, container and PostgreSQL experience can usually get an evaluation stack running from Evolveum's documentation. Production is a different task: it needs a tested backup and restore path, a planned upgrade path between releases, monitoring, and a clear owner for connector and configuration changes. Identify who will carry those responsibilities after the first deployment, because that person decides whether a Compose setup stays supportable. A partner can cover the build and hand-over, or stay on for ongoing support as a retainer.

What do we need to provide before the deployment starts?

Most delays come from decisions nobody made in advance. Plan to provide:

  • A host or virtual machine with Docker or a compatible runtime, sized for your user count and reachable from the networks it needs
  • A PostgreSQL decision: the supported major version, whether the database runs in Compose or on a separate server, and who manages its backups
  • Identity and admin decisions: which SSO service signs in administrators, which accounts hold the initial administrator role, and how secrets are stored
  • Target system access, such as directory or cloud accounts, with the service identities midPoint will use
  • Named owners for change approval, image updates and incident response

MidPoint's own user interface can authenticate against external SSO services, but midPoint itself does not act as the SSO server.

How long does a midPoint Compose deployment take?

Duration depends on scope, so no fixed figure applies. The number of environments, the number and type of connectors, the PostgreSQL and audit database design, the depth of security hardening, and the integration with your identity and logging systems all change the timeline. Ask for a written scope with milestones and a list of assumptions, including what you must provide and by when. Fixed-scope engagements from DeployOpen are agreed in writing before work starts, so the timeline follows from that document.

Do Evolveum subscriptions change how we deploy midPoint with Compose?

The deployment steps stay the same. Evolveum states that midPoint has no enterprise edition and that every line of its code is published under open source licenses. Subscriptions are a separate decision that affects support. Product Support covers resolving product bugs with an 8x5 next-business-day or 24x7 SLA, and Platform Subscriptions add feature development and roadmap influence. Evolveum's support page lists no prices, so request a quote from Evolveum. Also check the midPoint releases page for support end dates before you choose the release tag to deploy, since a long-term support release and a feature release have different lifetimes.

What does DeployOpen's fixed-scope engagement cover for a Compose deployment?

DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, including your cloud accounts, data centers or air-gapped networks. For midPoint on Compose, a fixed-scope engagement typically starts with a written scope that names the environments, the database design, the persistent volume and backup approach, the image tag policy, the handover documentation and any connectors in scope. Deliverables and timelines are agreed in writing before work starts, and the quote follows from that scope. Ongoing support, upgrades and continuous testing are available as retainers.

How do we move a Compose evaluation setup into production?

Treat the evaluation stack as a learning environment and rebuild the production stack with its own database, volumes and secrets. Pin the image tag rather than tracking a moving tag, because Evolveum changed its container image tagging strategy in June 2026, so confirm the current tag rules in the containers documentation before you pin. Test restore from a PostgreSQL backup on a separate host, then run your connector tests and access policy review against a non-production target. Only then move identities and configuration to production, and record the exact release and image in your change log.

How DeployOpen scopes and delivers midPoint deployments

DeployOpen works on Deploying midPoint with Docker Compose inside your own infrastructure, from a written scope agreed before work starts. We set up the Compose stack, PostgreSQL repository, persistent storage and image pinning, then hand over documentation and an evaluation-to-production checklist your team can review.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • We confirm the target host, container runtime, PostgreSQL version and whether the stack stays evaluation-only or moves to production.
  • We agree which midPoint release line and image tag your environment will pin, based on support dates you confirm with Evolveum.

How we build

  • We deploy the Compose file with a PostgreSQL service, schema initialization and persistent volumes for the repository and logs.
  • We verify first start, initial object import and the restart behavior of the database and midPoint containers.
  • We document how the stack changes from evaluation settings to production settings, including credentials, network exposure and backups.

How we hand over

  • You receive the Compose files, environment templates, volume layout and an image tag and upgrade procedure in writing.
  • We walk your platform team through the backup and restore steps for the PostgreSQL data directory and midPoint home.
  • Your team receives a go-live checklist covering security settings, monitoring points and the decisions still open for production.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover image tag changes when Evolveum publishes new releases, reviewed against your chosen support window.
  • Support scope for Compose-based deployments is agreed in writing, so your team knows which changes DeployOpen handles and which stay with you.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.