Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add self-hosting docs for Azure Container Instances

Tuan Dang5bed2580c3c2
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-container-instance-overview.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-container-instance-overview.png
new file mode 100644
index 0000000000..0ae7272c0f
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-container-instance-overview.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-advanced.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-advanced.png
new file mode 100644
index 0000000000..d7559bee40
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-advanced.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-1.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-1.png
new file mode 100644
index 0000000000..cfe1c31e8d
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-1.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-2.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-2.png
new file mode 100644
index 0000000000..7604bfba76
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-2.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-networking.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-networking.png
new file mode 100644
index 0000000000..ded446b7d2
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-networking.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-review.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-review.png
new file mode 100644
index 0000000000..e58f31514c
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-review.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance.png
new file mode 100644
index 0000000000..eadbf3e4e1
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance.png differ
diff --git a/docs/images/self-hosting/deployment-options/azure-container-instances/aci-select-container-instances.png b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-select-container-instances.png
new file mode 100644
index 0000000000..ab3af5321b
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/azure-container-instances/aci-select-container-instances.png differ
diff --git a/docs/images/self-hosting/deployment-options/gcp-cloud-run/gcp-cloud-run-service-details.png b/docs/images/self-hosting/deployment-options/gcp-cloud-run/gcp-cloud-run-service-details.png
new file mode 100644
index 0000000000..c90bd7ddb4
Binary files /dev/null and b/docs/images/self-hosting/deployment-options/gcp-cloud-run/gcp-cloud-run-service-details.png differ
diff --git a/docs/mint.json b/docs/mint.json
index 4057f50c58..ec90bea655 100644
--- a/docs/mint.json
+++ b/docs/mint.json
@@ -162,6 +162,7 @@
"self-hosting/deployment-options/kubernetes-helm",
"self-hosting/deployment-options/aws-ec2",
"self-hosting/deployment-options/gcp-cloud-run",
+ "self-hosting/deployment-options/azure-container-instances",
"self-hosting/deployment-options/docker-compose",
"self-hosting/deployment-options/digital-ocean-marketplace",
"self-hosting/deployment-options/fly.io"
diff --git a/docs/self-hosting/deployment-options/azure-container-instances.mdx b/docs/self-hosting/deployment-options/azure-container-instances.mdx
new file mode 100644
index 0000000000..e2df879707
--- /dev/null
+++ b/docs/self-hosting/deployment-options/azure-container-instances.mdx
@@ -0,0 +1,87 @@
+---
+title: "Azure Container Instances"
+description: "Deploy Infisical with Azure Container Instances"
+---
+
+Prerequisites:
+- Have an account with [Microsoft Azure](https://azure.microsoft.com/en-us)
+
+<Note>
+ This brief goes over how to deploy an instance of Infisical with Azure Container Instances without TLS/SSL configuration.
+
+ There are various options for enabling TLS/SSL with Azure Container Instances more suitable for production including:
+ - [Enabling a TLS endpoint in a sidecar container](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-group-ssl).
+ - [Enabling automatic HTTPS with Caddy in a sidecar container](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-group-automatic-ssl).
+ - Using Azure Function Proxies, Application Gateway, etc.
+</Note>
+
+<Steps>
+ <Step title="Create a container instance in Azure Container Instances">
+ 1.1. In Azure, navigate to the **Container Instances** solution and press **Create**.
+
+ ![Azure container instance](/images/self-hosting/deployment-options/azure-container-instances/aci-select-container-instances.png)
+
+ ![Azure create container instance](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance.png)
+
+ 1.2. In the **Basics** section, specify the **Subscription** and **Resource group** to manage the deployed resource.
+
+ Also, give the container a friendly name like Infisical and specify a **Region** for it to be deployed to.
+
+ ![Azure container instance basics](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-1.png)
+
+ Next, select the **Public** option under **Image type** and fill in your intended [Infisical public Docker image](https://hub.docker.com/r/infisical/infisical) in the **Image** field; this will pull the image from Docker Hub.
+
+ For example, in order to opt for Infisical `v0.43.4`, you would input: `infisical/infisical:v0.43.4`.
+
+ ![Azure container instance basics](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-basics-2.png)
+
+ <Note>
+ Depending on your use-case and requirements, you may find it helpful to further configure your Azure container instance.
+
+ For example, you may want to adjust the **Region** option to specify which region to deploy the container for your
+ instance of Infisical to minimize distance and therefore latency between the instance and your infrastructure.
+ </Note>
+
+ 1.3. In the **Networking** section, select the **Public** option under **Networking type**; this will make the container accessible over the public internet.
+
+ Next, under the **Ports** section, add an entry for port `8080` and protocol `TCP`.
+
+ ![Azure container instance networking](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-networking.png)
+
+ 1.4. Running Infisical requires a few environment variables to be set for the GCP Cloud Run service.
+ 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).
+
+ In the **Advanced** section, fill in the required environment variables.
+
+ <Note>
+ To use more features like emailing and single sign-on, you can set additional configuration options [here](/self-hosting/configuration/envars).
+ </Note>
+
+ ![Azure container instance advanced](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-advanced.png)
+
+ 1.5. Finally, in the **Review + create** section, double check the information from the previous steps and press **Create** to create the Azure container instance.
+
+ ![Azure container instance review](/images/self-hosting/deployment-options/azure-container-instances/aci-create-container-instance-review.png)
+ </Step>
+ <Step title="Navigate to your deployed instance of Infisical">
+
+ Head to the **Overview** page of the newly-created container instance to view its **IP address (Public)**; you can access your instance of Infisical by this IP address under the port `:8080`.
+
+ For example, in the image below, the IP address of the sample deployed container instance is `4.255.87.109`; the instance would be accessible in the browser by heading to `4.255.87.109:8080`.
+
+ ![Azure container instance overview](/images/self-hosting/deployment-options/azure-container-instances/aci-container-instance-overview.png)
+ </Step>
+</Steps>
+
+<AccordionGroup>
+ <Accordion title="Do you have any recommendations for deploying Infisical with Azure Container Instances?">
+ Yes, here are a few that come to mind:
+ - In step 1.2, we recommend pinning the Docker image to a specific [version of Infisical](https://hub.docker.com/r/infisical/infisical/tags)
+ instead of referring to the `latest` tag to avoid any unexpected version-to-version migration issues.
+ - In step 1.2, we recommend selecting a **Region** option that is closest to your infrastructure/clients to reduce latency.
+ - Enable TLS/SSL with Azure Container Instances. There are various options for doing so including [enabling a TLS endpoint in a sidecar container](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-group-ssl), [enabling automatic HTTPS with Caddy in a sidecar container](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-group-automatic-ssl), and using Azure Function Proxies, Application Gateway, etc.
+
+ 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>
diff --git a/docs/self-hosting/deployment-options/gcp-cloud-run.mdx b/docs/self-hosting/deployment-options/gcp-cloud-run.mdx
index ebd0ef39af..b7288ce3a1 100644
--- a/docs/self-hosting/deployment-options/gcp-cloud-run.mdx
+++ b/docs/self-hosting/deployment-options/gcp-cloud-run.mdx
@@ -23,7 +23,7 @@ Prerequisites:
2.2. In the service creation form, select the **Deploy one revision from an existing container image** option and fill in your intended [Infisical public Docker image](https://hub.docker.com/r/infisical/infisical) in the container image URL.
- For example, in order to opt for Infisical `v0.43.4`, you would use the following URL: `docker.io/infisical/infisical:v0.43.4`.
+ For example, in order to opt for Infisical `v0.43.4`, you would input: `docker.io/infisical/infisical:v0.43.4`.
![GCP Cloud Run create service docker image specification](/images/self-hosting/deployment-options/gcp-cloud-run/gcp-cloud-run-create-service-docker-image.png)
@@ -48,6 +48,11 @@ Prerequisites:
Finally, press **Create** to finish setting up the GCP Cloud Run service.
</Step>
+ <Step title="Navigate to your deployed instance of Infisical">
+ Head to the **Service details** of the newly-created service to view its URL; you can access your instance of Infisical by clicking on the URL.
+
+ ![GCP Cloud Run service details](/images/self-hosting/deployment-options/gcp-cloud-run/gcp-cloud-run-service-details.png)
+ </Step>
</Steps>
<AccordionGroup>
diff --git a/docs/self-hosting/overview.mdx b/docs/self-hosting/overview.mdx
index d7a0ff8053..3e0fac2ce9 100644
--- a/docs/self-hosting/overview.mdx
+++ b/docs/self-hosting/overview.mdx
@@ -53,4 +53,11 @@ Choose from a variety of deployment options listed below to get started.
>
Deploy Infisical with GCP Cloud Run
</Card>
+ <Card
+ title="Azure Container Instances"
+ color="#ea5a0c"
+ href="deployment-options/azure-container-instances"
+ >
+ Deploy Infisical with Azure Container Instances
+ </Card>
</CardGroup>