# Self-host Formbricks

> An open-source survey and experience-management platform you run on your own infrastructure.

- Page: https://levelrail.com/templates/formbricks/
- JSON: https://levelrail.com/templates/formbricks.json
- Category: Productivity
- Licence: AGPL-3.0-only (Network copyleft (AGPL) license)
- Source: https://github.com/formbricks/formbricks
- Upstream docs: https://formbricks.com/docs/self-hosting/setup/docker

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | pgvector/pgvector | pg16 | none | formbricks_db_data -> /var/lib/postgresql/data |
| formbricks | ghcr.io/formbricks/formbricks | 4.5.0 | 3000 | formbricks_uploads -> /apps/web/uploads |
| redis | redis | 7-alpine | none | formbricks_redis_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| formbricks | CRON_SECRET | generated |
| formbricks | DATABASE_URL | generated |
| formbricks | ENCRYPTION_KEY | generated |
| formbricks | NEXTAUTH_SECRET | generated |
| formbricks | NEXTAUTH_URL | preset |
| formbricks | REDIS_URL | preset |
| formbricks | WEBAPP_URL | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/formbricks/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 Formbricks 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 formbricks for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image pgvector/pgvector:pg16, ghcr.io/formbricks/formbricks:4.5.0, redis:7-alpine is what you deploy there.

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