Page tree
Skip to end of metadata
Go to start of metadata

This demo shows how to run midPoint container with alternative repository implementation.


$ cd demo/postgresql
$ docker-compose up

After docker-compose up command successfully finishes you should see something like this on the console:

midpoint_server_1  | midpoint;midpoint.log;demo;;2018-09-20 16:25:22,191 [] [main] INFO (org.springframework.boot.web.embedded.tomcat.TomcatWebServer): Tomcat started on port(s): 8080 (http) 9090 (http) with context path '/midpoint'
midpoint_server_1  | midpoint;midpoint.log;demo;;2018-09-20 16:25:22,209 [] [main] INFO (com.evolveum.midpoint.web.boot.MidPointSpringApplication): Started MidPointSpringApplication in 60.512 seconds (JVM running for 61.688)

Now you can log into midPoint using https://localhost:8443/midpoint URL, with an user of administrator and a password of 5ecr3t.

You can safely ignore console messages like this:

midpoint_data_1       | ERROR:  could not serialize access due to read/write dependencies among transactions
midpoint_data_1       | DETAIL:  Reason code: Canceled on identification as a pivot, during write.
midpoint_data_1       | HINT:  The transaction might succeed if retried.

This is a part of standard midPoint conflict resolution process. The mentioned transactions are really retried and they succeed eventually.


The demo/postgresql composition contains the following containers:

Container nameDescription
postgresql_midpoint_server_1This is the standard container providing midPoint functionality. It contains standalone Tomcat running midPoint application, reverse Apache proxy, and TIER Beacon.
postgresql_midpoint_data_1This container hosts midPoint repository; this time it is implemented on PostgreSQL 9.5 database.


The containers publish the following TCP ports. (Port mapped to localhost denotes the mapping of container port to the host port where it can be reached from the outside.)

ContainerPort numberPort mapped to localhostDescription
postgresql_midpoint_server_14438443HTTPS port to be used to connect to midPoint application
80-HTTP port to be used to connect to midPoint application
9090-Tomcat AJP port used for Apache httpd ↔ Tomcat communication
postgresql_midpoint_data_154325432Port used to connect to the PostgreSQL database

Docker volumes

The following volumes are created to persist data and other relevant files.

Volume nameDescriptionUsed by container
postgresql_midpoint_homeThe midPoint home directory. Contains schema extensions, logs, custom libraries, custom ConnId connectors, and so on.postgresql_midpoint_server_1
postgresql_midpoint_dataVolume hosting PostgreSQL database used by midPoint.postgresql_midpoint_data_1

Configuring the composition

The following configuration properties are supported. Please refer to the main documentation page for their explanation.

PropertyDefault value

You can tailor these to your needs.

The following Docker secrets are used:


The following configuration files are used:

Target fileSource location

You can modify or replace these files as needed.

  • No labels