Loading...
Open Source Secrets Manager - Deploy Infisical on Sliplane with Docker

Open Source Secrets Manager - Deploy Infisical on Sliplane with Docker

Lukas Mauser - Co-Founder von sliplane.ioLukas Mauser
4 min

Infisical is an open-source secrets management platform that helps you securely store, sync, and manage your application secrets across your entire development lifecycle. It provides a secure vault for API keys, database credentials, certificates, and other sensitive data with features like secret versioning, audit logs, and integrations with popular development tools.

In this guide, I'll show you how to deploy your own Infisical instance in the cloud using Docker and Sliplane.

Overview

Our Infisical deployment will consist of three services:

  1. PostgreSQL - Main database for storing secrets and metadata
  2. Redis - Caching layer for improved performance
  3. Infisical - The main application server

Deploy in the Cloud

Step 1: Create a New Project

  1. Log in to Sliplane with your GitHub account
  2. In the Dashboard, click "Create Project" and name it "infisical"

Step 2: Deploy PostgreSQL Database

  1. Navigate to your new project and click "Deploy Service"
  2. Select a server or create a new one if you don't have one yet. To create a new server, click "Create Server", then choose the location and server type. The base server type should be enough to get started - you can scale up later if needed
  3. Choose Postgres from the presets
  4. In the settings:
    • Disable the public toggle for additional security
    • You can change the default database name, user, and password if desired, you'll need these credentials later for deploying Infisical
  5. Click "Deploy" and wait a few seconds for your database to deploy

Step 3: Deploy Redis

  1. In the same project, click "Deploy Service" again
  2. Select the same server where PostgreSQL is running
  3. Choose Redis from the presets
  4. In the settings:
    • Disable the public toggle for additional security
    • Like in PostgreSQL, you can change the default password if desired, which you will need later for deploying Infisical
  5. Click "Deploy" and wait a few seconds for Redis to come live

Step 4: Deploy Infisical

  1. In the infisical project, click "Deploy Service" again
  2. Select the same server where PostgreSQL and Redis are running
  3. Choose Registry as the deploy source
  4. In the "Image URL" field, enter: docker.io/infisical/infisical:v0.137.0-postgres
  5. Add the following environment variables, but make sure to replace the placeholders with your actual Postgres and Redis connection details!
AUTH_SECRET="q6LRi7c717a3DQ8JUxlWYkZpMhG4+RHLoFUVt3Bvo2U="
DB_CONNECTION_URI="pg://postgres:[email protected]:5432/infiscal"
ENCRYPTION_KEY="f40c9178624764ad85a6830b37ce239a"
HOST="0.0.0.0"
REDIS_URL="redis://:[email protected]:6379"
SITE_URL="$SLIPLANE_DOMAIN"

Important: You need to update the following values:

  • Replace s2H8ivfQidmNzfA4 with your PostgreSQL password
  • Replace postgres-wxzi.internal with your PostgreSQL internal hostname
  • Replace infiscal with your database name (if you changed it)
  • Replace qclE92PDoGjNg3rP with your Redis password
  • Replace redis-t9x2.internal with your Redis internal hostname

To find these values:

  1. Navigate to your PostgreSQL service in a new tab - you'll see the internal hostname and connection details in the environment variables section
  2. Navigate to your Redis service in another tab - you'll see the internal hostname and password in the environment variables section

Click "Deploy" and wait for the deployment to complete. Once deployed, you can access Infisical at your ...sliplane.app domain

Infisical UI

Summary

Infisical provides a flexible, open-source alternative to commercial secrets management platforms like HashiCorp Vault or AWS Secrets Manager. Self-hosting gives you complete control over your sensitive data and the freedom to customize as needed.

This straightforward three-service setup with PostgreSQL and Redis containerized approach makes it simple to replicate across different environments or adapt to your specific requirements.

You now have a functional secrets management platform that you can easily extend or integrate with your existing tools. For deployment, we used Sliplane which simplified the Docker orchestration and inter-service networking.

Welcome to the container cloud

Sliplane makes it simple to deploy containers in the cloud and scale up as you grow. Try it now and get started in minutes!