• Task
  • Version · 6.0
  • Create

Using Liquibase and Docker with Titan

Last updated: August 11, 2026

Procedure

1

Install Docker and Titan by referring to Installation and Configuration.

loading
2

Create directories for the PostgreSQL JDBC jar and changelog locally.

3

Run docker network inspect bridge to find the IP address of your Titan PostgreSQL container.

4

Create an alias to avoid lengthy arguments. Ensure to set update ${JAR}.

loading
5

Generate the changelog file for your Titan-provided PostgreSQL database by running.

6

Run the following command to synchronize the changelog file with a schema.

liquibase changelog-sync
7

Examine the DATABASECHANGELOG table, which is created by Liquibase.

psql postgres://postgres:postgres@localhost/postgres -t -c 'SELECT * FROM DATABASECHANGELOG;'
8

Commit the updated database to the Titan server and check in the changelog.xml file into the same source code repository as your application.

titan commit -m "baselined with Liquibase" hello-world
9

Add a new changeset to the changelog file.

loading
10

Save your file and run the following command to make sure you have updated the file correctly.

liquibase validate
11

Check the SQL that will be run on the server.

liquibase update-sql
12

Deploy your new table to the database.

liquibase update
13

Commit your data changes to Titan and your updated changelog to source code control.

titan commit -m "Created table newtable with Liquibase." hello-world