Learn how to run Postgres schema migrations.
Pull the Infisical Docker Image
<version>
with the specific version number you intend to deploy. View available versions hereSet Up the Environment Variable
DB_CONNECTION_URI
environment variable. This connection string should point to your PostgreSQL database. The format generally looks like this: postgresql://username:password@host:port/database
.Run the Migration
<your_connection_string>
with your actual PostgreSQL connection string, and <version>
with the desired version number.Verify the Migration
Rollback If Needed
Repeat for Each Version
infisical/infisical:1
to infisical/infisical:2
, ensure you run the schema migrations for infisical/infisical:2
before deploying it.