Skip to main content

Upgrade Infrahub Enterprise

The process to migrate your instance of Infrahub to the latest version may vary depending on your deployment of Infrahub. However, at a high-level, it will involve getting the latest version of the Infrahub code, and then performing any needed Database Migrations and Schema updates.

Follow the instructions below for your current release version and deployment method:

info

Even though a "smooth" migration is anticipated, we nonetheless strongly suggest creating a backup beforehand. For detailed information, see our Backup Guide.

Before 1.2 version

# Bring down the current environment
docker compose down

# Pull the new docker-compose file
curl https://infrahub.opsmill.io/enterprise > docker-compose.yml

# Run database migrations and schema update
docker compose run infrahub-server infrahub db migrate
docker compose run infrahub-server infrahub db update-core-schema

# Bring the environment back up
docker compose up -d

Version 1.2 and after

In version 1.2 the upgrade process has been streamlined with a unified upgrade command:

# Bring down the current environment
docker compose down

# Pull the new docker-compose file
curl https://infrahub.opsmill.io/enterprise > docker-compose.yml

# Run the unified upgrade command
docker compose run infrahub-server infrahub upgrade

# Bring the environment back up
docker compose up -d

For installation instructions, please refer to our Enterprise Installation Guide.