# Self-host Infisical

> An open-source secrets manager to centralize API keys, database credentials, and app config.

- Page: https://levelrail.com/templates/infisical/
- JSON: https://levelrail.com/templates/infisical.json
- Category: Security
- Licence: MIT (Permissive license)
- Source: https://github.com/Infisical/infisical
- Upstream docs: https://infisical.com/docs/self-hosting/overview

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | infisical_db_data -> /var/lib/postgresql/data |
| infisical | infisical/infisical | v0.154.6 | 8080 | none |
| redis | redis | 7-alpine | none | infisical_redis_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| infisical | AUTH_SECRET | generated |
| infisical | DB_CONNECTION_URI | generated |
| infisical | ENCRYPTION_KEY | generated |
| infisical | REDIS_URL | preset |
| infisical | SITE_URL | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy infisical --name my-infisical
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/infisical/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Infisical on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id infisical for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, infisical/infisical:v0.154.6, redis:7-alpine is what you deploy there.

Self-host Infisical, Infisical docker compose file, deploy Infisical on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
