mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
81 lines
3.3 KiB
Plaintext
81 lines
3.3 KiB
Plaintext
---
|
|
title: "Docker"
|
|
description: "Learn to install Infisical purely on docker"
|
|
---
|
|
|
|
The Infisical standalone version combines all the essential components of the application into a single container, making deployment and management more straightforward than using Kubernetes or Docker Compose.
|
|
|
|
Since all the components are bundled into one image, running this version of Infisical requires a minimum of **230MB of memory**.
|
|
|
|
This guide assumes you have basic knowledge of Docker and have it installed on your system. If you don't have Docker installed, please follow the official installation guide: https://docs.docker.com/get-docker/
|
|
|
|
## Pull the Infisical Docker image
|
|
|
|
Open your terminal or command prompt and enter the following command to pull the Infisical Docker image:
|
|
|
|
```
|
|
docker pull infisical/infisical:latest
|
|
```
|
|
|
|
## Run with docker
|
|
The Infisical Docker image requires several required environment variables.
|
|
Add the required environment variables listed below to your docker run command. View [all configurable environment variables](../configuration/envars)
|
|
|
|
|
|
<ParamField query="ENCRYPTION_KEY" type="string" default="none" required>
|
|
Must be a random 16 byte hex string. Can be generated with `openssl rand -hex 16`
|
|
</ParamField>
|
|
|
|
<ParamField query="JWT_SIGNUP_SECRET" type="string" default="none" required>
|
|
Must be a random 16 byte hex string. Can be generated with `openssl rand -hex 16`
|
|
</ParamField>
|
|
|
|
<ParamField query="JWT_REFRESH_SECRET" type="string" default="none" required>
|
|
Must be a random 16 byte hex string. Can be generated with `openssl rand -hex 16`
|
|
</ParamField>
|
|
|
|
<ParamField query="JWT_AUTH_SECRET" type="string" default="none" required>
|
|
Must be a random 16 byte hex string. Can be generated with `openssl rand -hex 16`
|
|
</ParamField>
|
|
|
|
<ParamField query="JWT_MFA_SECRET" type="string" default="none" required>
|
|
Must be a random 16 byte hex string. Can be generated with `openssl rand -hex 16`
|
|
</ParamField>
|
|
|
|
<ParamField query="JWT_SERVICE_SECRET" type="string" default="none" required>
|
|
Must be a random 16 byte hex string. Can be generated with `openssl rand -hex 16`
|
|
</ParamField>
|
|
|
|
<ParamField query="REDIS_URL" type="string" default="none" required>
|
|
Redis connection string
|
|
</ParamField>
|
|
|
|
<ParamField query="MONGO_URL" type="string" default="none" required>
|
|
*TLS based connection string is not yet supported
|
|
</ParamField>
|
|
|
|
|
|
Once you have added the required environment variables to your docker run command, execute it in your terminal.
|
|
|
|
```bash
|
|
docker run -p 80:80 \
|
|
-e ENCRYPTION_KEY=f40c9178624764ad85a6830b37ce239a \
|
|
-e JWT_SIGNUP_SECRET=38ea90fb7998b92176080f457d890392 \
|
|
-e JWT_REFRESH_SECRET=7764c7bbf3928ad501591a3e005eb364 \
|
|
-e JWT_AUTH_SECRET=5239fea3a4720c0e524f814a540e14a2 \
|
|
-e JWT_SERVICE_SECRET=8509fb8b90c9b53e9e61d1e35826dcb5 \
|
|
-e MONGO_URL="<>" \
|
|
-e REDIS_URL="<>" \
|
|
infisical/infisical:latest
|
|
```
|
|
|
|
<Warning>
|
|
The sample environment variables listed above are only to be used as an example and should not be used in production
|
|
</Warning>
|
|
|
|
## Verify the installation:
|
|
Once the container is running, open a web browser and navigate to http://localhost:80. That's it! You have successfully installed the Infisical application using a single Docker image.
|
|
|
|
<Info>
|
|
Once installation is complete, you will have to create the first account. No default account is provided.
|
|
</Info> |