From 3c0908a7883c0604817b066c3cccb87e160e7dac Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 29 Feb 2024 11:56:48 -0500 Subject: [PATCH] update mongo to postgres doc --- docs/self-hosting/guides/mongo-to-postgres.mdx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/self-hosting/guides/mongo-to-postgres.mdx b/docs/self-hosting/guides/mongo-to-postgres.mdx index fe3f0aef7..22a5acccf 100644 --- a/docs/self-hosting/guides/mongo-to-postgres.mdx +++ b/docs/self-hosting/guides/mongo-to-postgres.mdx @@ -14,6 +14,7 @@ The newly released Postgres version of Infisical is the only version of Infisica Before starting the migration, ensure you have the following command line tools installed: +- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) - [pg_dump](https://www.postgresql.org/docs/current/app-pgrestore.html) - [pg_restore](https://www.postgresql.org/docs/current/app-pgdump.html) - [mongodump](https://www.mongodb.com/docs/database-tools/mongodump/) @@ -103,7 +104,7 @@ Once started, the migration script will transform MongoDB data into an equivalen Clone the Infisical MongoDB repository. ``` - git clone https://github.com/Infisical/infisical.git + git clone -b infisical/v0.46.7-postgres https://github.com/Infisical/infisical.git ``` @@ -186,9 +187,14 @@ Rather than transferring the data row-by-row from your local machine to the prod ## Post-Migration Steps -After successfully migrating the data to PostgreSQL, you can proceed to deploy Infisical using your preferred deployment method. -Refer to [Infisical's self-hosting documentation](https://infisical.com/docs/self-hosting/overview) for deployment options. -Remember to use your production PostgreSQL connection string for the new deployment and transfer all [environment variables](/self-hosting/configuration/envars) from the MongoDB version of Infisical to the new version (they are all compatible). +Once the data migration to PostgreSQL is complete, you're ready to deploy Infisical using the deployment method of your choice. +For guidance on deployment options, please visit the [self-hosting documentation](/self-hosting/overview). +Remember to transfer the necessary [environment variables](/self-hosting/configuration/envars) from the MongoDB version of Infisical to the new Postgres based Infisical; rest assured, they are fully compatible. + + +The first deployment of Postgres based Infisical must be deployed with Docker image tag `v0.46.7-postgres`. +After deploying this version, you can proceed to update to any subsequent versions. + ## Additional discussion - When you visit Infisical's [docker hub](https://hub.docker.com/r/infisical/infisical) page, you will notice that image tags end with `-postgres`.