Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Add self-hosting docs for Railway
Tuan Dangcb364186d838
diff --git a/docs/images/self-hosting/deployment-options/railway/railway-create-project.png b/docs/images/self-hosting/deployment-options/railway/railway-create-project.pngnew file mode 100644index 0000000000..b15e6233b1Binary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-create-project.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-deploy-template-infisical.png b/docs/images/self-hosting/deployment-options/railway/railway-deploy-template-infisical.pngnew file mode 100644index 0000000000..365ac62c9bBinary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-deploy-template-infisical.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-deploy-template.png b/docs/images/self-hosting/deployment-options/railway/railway-deploy-template.pngnew file mode 100644index 0000000000..7ff29434baBinary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-deploy-template.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-infisical-architecture.png b/docs/images/self-hosting/deployment-options/railway/railway-infisical-architecture.pngnew file mode 100644index 0000000000..e35f0c7d88Binary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-infisical-architecture.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-infisical-service.png b/docs/images/self-hosting/deployment-options/railway/railway-infisical-service.pngnew file mode 100644index 0000000000..1aeaae8e07Binary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-infisical-service.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-template-infisical.png b/docs/images/self-hosting/deployment-options/railway/railway-template-infisical.pngnew file mode 100644index 0000000000..19c39a3022Binary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-template-infisical.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-template-mongodb.png b/docs/images/self-hosting/deployment-options/railway/railway-template-mongodb.pngnew file mode 100644index 0000000000..d65781f4b1Binary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-template-mongodb.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-template-overview.png b/docs/images/self-hosting/deployment-options/railway/railway-template-overview.pngnew file mode 100644index 0000000000..167793890fBinary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-template-overview.png differdiff --git a/docs/images/self-hosting/deployment-options/railway/railway-template-redis.png b/docs/images/self-hosting/deployment-options/railway/railway-template-redis.pngnew file mode 100644index 0000000000..aa888c43ecBinary files /dev/null and b/docs/images/self-hosting/deployment-options/railway/railway-template-redis.png differdiff --git a/docs/mint.json b/docs/mint.jsonindex a907809279..621fff691a 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -167,7 +167,8 @@"self-hosting/deployment-options/azure-app-services","self-hosting/deployment-options/azure-container-instances","self-hosting/deployment-options/digital-ocean-marketplace",- "self-hosting/deployment-options/fly.io"+ "self-hosting/deployment-options/fly.io",+ "self-hosting/deployment-options/railway"]},"self-hosting/configuration/envars",diff --git a/docs/self-hosting/deployment-options/railway.mdx b/docs/self-hosting/deployment-options/railway.mdxnew file mode 100644index 0000000000..29d2ce293b--- /dev/null+++ b/docs/self-hosting/deployment-options/railway.mdx@@ -0,0 +1,61 @@+---+title: "Railway"+description: "Deploy Infisical with Railway"+---++Prerequisites:+- Have an account with [Railway](https://railway.app/)++<Steps>+ <Step title="Deploy the Infisical template with Railway">+ 1.1. In Railway, create a new project and select **Deploy a template > Infisical**.++ ++ ++ ++ ++ 1.2. At minimum, Infisical requires that you set the variables `ENCRYPTION_KEY`, `AUTH_SECRET`, `MONGO_URL`, and `REDIS_URL`+ which you can read more about [here](/self-hosting/configuration/envars).++ By default, the Infisical template on Railway pre-configures environment variables on each service in the deployment but requires you to supply two for the Redis and MongoDB services.++ On the MongoDB service, supply a value for the `MONGO_INITDB_ROOT_PASSWORD` variable.++ ++ On the Redis service, supply a value for the `REDIS_PASSWORD` variable.++ ++ ++ <Note>+ To use more features like emailing and single sign-on, you can set additional configuration options on the Infisical service [here](/self-hosting/configuration/envars).+ </Note>++ Finally, press **Deploy** to create the project and deploy the services within it.++ ++ + </Step>+ <Step title="Navigate to your deployed instance of Infisical">+ Head to the newly-created Infisical service to view its URL under Networking > Public Networking; you can access your instance of Infisical by clicking on the URL.++ + </Step>+</Steps>++<AccordionGroup>+ <Accordion title="Do you have any recommendations for deploying Infisical with Railway?">+ Yes, here are a few that come to mind:+ - While the Infisical template on Railway uses the `latest` tag to get the latest version of Infisical, we recommend creating a Railway deployment that pins the Docker image to a specific [version of Infisical](https://hub.docker.com/r/infisical/infisical/tags) to avoid any unexpected version-to-version migration issues.+ - We recommend selecting **Deployment region** options for your Railway service deployments to be closest to your infrastructure/clients to reduce latency.++ We're working on putting together a fuller list of deployment best practices as well as minimum resource configuration requirements for running Infisical so stay tuned!+ </Accordion>+</AccordionGroup>\ No newline at end of filediff --git a/docs/self-hosting/overview.mdx b/docs/self-hosting/overview.mdxindex 5be03714df..f5e754b1fc 100644--- a/docs/self-hosting/overview.mdx+++ b/docs/self-hosting/overview.mdx@@ -1,10 +1,9 @@---title: "Introduction"-description: "Explore deployment options for self hosting Infisical"+description: "Self-host Infisical on your own infrastructure"----To meet various compliance requirements, you may want to self-host Infisical instead of using [Infisical Cloud](https://app.infisical.com/).-Self-hosted Infisical allows you to maintain your sensitive information within your own infrastructure and network, ensuring complete control over your data.+Self-hosting Infisical lets you retain data on your own infrastructure and network.Choose from a variety of deployment options listed below to get started.<Card@@ -50,13 +49,6 @@ Choose from a variety of deployment options listed below to get started.>Deploy Infisical with AWS Lightsail</Card>- <Card- title="Fly.io"- color="#ea5a0c"- href="deployment-options/fly.io"- >- Deploy Infisical with Fly.io- </Card><Cardtitle="GCP Cloud Run"color="#ea5a0c"@@ -78,4 +70,18 @@ Choose from a variety of deployment options listed below to get started.>Deploy Infisical with Azure Container Instances</Card>+ <Card+ title="Fly.io"+ color="#ea5a0c"+ href="deployment-options/fly.io"+ >+ Deploy Infisical with Fly.io+ </Card>+ <Card+ title="Railway"+ color="#ea5a0c"+ href="deployment-options/railway"+ >+ Deploy Infisical with Railway+ </Card></CardGroup>