# Self-host Penpot

> An open-source design and prototyping platform, a self-hosted alternative to Figma.

- Page: https://levelrail.com/templates/penpot/
- JSON: https://levelrail.com/templates/penpot.json
- Category: Productivity
- Licence: MPL-2.0 (Copyleft license)
- Source: https://github.com/penpot/penpot
- Upstream docs: https://help.penpot.app

## Requirements
- Memory: about 2 GiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: 2.11.1

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| backend | penpotapp/backend | 2.11.1 | none | penpot_assets -> /opt/data/assets |
| exporter | penpotapp/exporter | 2.11.1 | none | none |
| frontend | penpotapp/frontend | 2.11.1 | 8080 | none |
| postgres | postgres | 15-alpine | none | penpot_db_data -> /var/lib/postgresql/data |
| valkey | valkey/valkey | 8.1-alpine | none | penpot_valkey_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| backend | PENPOT_DATABASE_PASSWORD | generated |
| backend | PENPOT_DATABASE_URI | preset |
| backend | PENPOT_DATABASE_USERNAME | generated |
| backend | PENPOT_FLAGS | preset |
| backend | PENPOT_OBJECTS_STORAGE_BACKEND | preset |
| backend | PENPOT_OBJECTS_STORAGE_FS_DIRECTORY | preset |
| backend | PENPOT_PUBLIC_URI | preset |
| backend | PENPOT_REDIS_URI | preset |
| backend | PENPOT_SECRET_KEY | generated |
| exporter | PENPOT_PUBLIC_URI | preset |
| exporter | PENPOT_REDIS_URI | preset |
| frontend | PENPOT_BACKEND_URI | preset |
| frontend | PENPOT_EXPORTER_URI | preset |
| postgres | POSTGRES_DB | preset |
| postgres | POSTGRES_INITDB_ARGS | preset |
| postgres | POSTGRES_PASSWORD | generated |
| postgres | POSTGRES_USER | generated |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/penpot/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 Penpot 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 penpot for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image penpotapp/backend:2.11.1, penpotapp/exporter:2.11.1, penpotapp/frontend:2.11.1, postgres:15-alpine, valkey/valkey:8.1-alpine is what you deploy there.

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