On this page
- What makes up a Penpot installation?
- How do you fetch and adjust the official compose file?
- How do you start Penpot and confirm it runs?
- How do you put Penpot behind Nginx with HTTPS?
- How do you create users and close registration?
- How do you connect outgoing mail?
- How do you back up and update Penpot?
- Which problems come up most often?
- Questions
What makes up a Penpot installation?
Penpot runs as several containers: a frontend (static files and an internal proxy), a backend (Clojure on the JVM), an exporter that renders images and PDFs with a headless browser, PostgreSQL and Valkey (a Redis-compatible store). The backend and exporter use the most memory, so 4 GB is a sensible floor for a small team and 2 vCPU keeps exports quick.
Start from a server with Docker Engine and the Compose plugin; the Docker app image has both, or follow Docker Engine on a plain Ubuntu or Debian image. Point design.example.net at 198.51.100.24 and 2001:db8:4f2a::24.
docker --version
docker compose version
free -hHow do you fetch and adjust the official compose file?
Penpot keeps a ready compose file in its repository; download it and change a few values rather than writing your own.
mkdir -p ~/penpot && cd ~/penpot
curl -fsSLo docker-compose.yaml https://raw.githubusercontent.com/penpot/penpot/main/docker/images/docker-compose.yaml
openssl rand -base64 48
nano docker-compose.yamlEdit these parts of the file:
- Public address: set
PENPOT_PUBLIC_URItohttps://design.example.net. - Secret key: set
PENPOT_SECRET_KEYto the random string printed byopenssl. Sessions and tokens are signed with it, so keep it stable. - Flags: in
PENPOT_FLAGSremovedisable-secure-session-cookies(you will serve HTTPS) and keepenable-smtp. - Port: change the frontend mapping from
9001:8080to127.0.0.1:9001:8080so only Nginx can reach it. - Database password: replace the default PostgreSQL password in both the database service and the backend settings.
How do you start Penpot and confirm it runs?
Bring the stack up under the project name penpot, then check the containers and the local port.
docker compose -p penpot -f docker-compose.yaml up -d
docker compose -p penpot ps
sudo ss -tlnp | grep 9001
curl -sI http://127.0.0.1:9001 | head -n 1All services should show as running and the frontend should answer with HTTP 200. The first start runs database migrations, so give the backend a minute; docker compose -p penpot logs -f penpot-backend shows progress.
How do you put Penpot behind Nginx with HTTPS?
Proxy everything to port 9001, upgrade the /ws/notifications path to a WebSocket, and allow large uploads because design files with images get big.
sudo apt install -y nginx certbot python3-certbot-nginxserver {
listen 80;
listen [::]:80;
server_name design.example.net;
client_max_body_size 350M;
location /ws/notifications {
proxy_pass http://127.0.0.1:9001/ws/notifications;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
location / {
proxy_pass http://127.0.0.1:9001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
}
}sudo ln -s /etc/nginx/sites-available/penpot /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d design.example.net
sudo ufw allow OpenSSH && sudo ufw allow 'Nginx Full' && sudo ufw enableSave the block as /etc/nginx/sites-available/penpot before linking it. Caddy needs just reverse_proxy 127.0.0.1:9001, since it forwards WebSockets automatically (Caddy HTTPS).
How do you create users and close registration?
Create accounts from the command line, then add disable-registration to PENPOT_FLAGS so strangers cannot sign up.
docker exec -ti penpot-penpot-backend-1 python3 manage.py create-profile
# answers: email, full name, password
cd ~/penpot && nano docker-compose.yaml # add disable-registration to PENPOT_FLAGS
docker compose -p penpot up -dIf your container name differs, docker compose -p penpot ps lists it. Team owners can still invite people by email from inside Penpot once SMTP works. For single sign-on, Penpot supports OIDC providers such as the ones in the Authelia and Zitadel guides.
How do you connect outgoing mail?
Fill the SMTP variables in the backend environment with an authenticated relay on port 587: PENPOT_SMTP_HOST, PENPOT_SMTP_PORT=587, PENPOT_SMTP_USERNAME, PENPOT_SMTP_PASSWORD, PENPOT_SMTP_TLS=true and PENPOT_SMTP_DEFAULT_FROM. The stock file also starts a mail catcher container for testing, which you can remove once real mail works. Port 25 for direct delivery may be closed on new servers; open a support ticket to ask before relying on it. SMTP relay for apps covers the DNS side. Restart with docker compose -p penpot up -d and send yourself a team invite.
How do you back up and update Penpot?
Penpot data lives in two places: the PostgreSQL database and the assets volume with uploaded images and fonts.
cd ~/penpot
docker compose -p penpot exec -T penpot-postgres pg_dump -U penpot penpot | gzip > penpot-$(date +%F).sql.gz
docker volume ls | grep penpot
docker run --rm -v penpot_penpot_assets:/data -v "$PWD":/out alpine tar czf /out/assets-$(date +%F).tgz -C /data .Use the exact volume name from docker volume ls. Updating means pulling new images and recreating; migrations run on start:
docker compose -p penpot pull
docker compose -p penpot up -d
docker image prune -fRead the release notes before major versions, and compare your edited compose file with the new upstream one in case settings were renamed.
Which problems come up most often?
- Login loops or "unauthorized" after login:
PENPOT_PUBLIC_URIdoes not match the address in the browser, or HTTPS is missing while secure cookies are on. - Collaborators do not see each other: the WebSocket location is missing in Nginx.
- Export to PNG or PDF fails: check
docker compose -p penpot logs penpot-exporter; the exporter needs memory headroom. - Uploads rejected: raise
client_max_body_sizein Nginx.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Penpot design tool with Docker
Is Penpot compatible with Figma files?
Penpot does not open Figma files directly. There are community export plugins that convert designs into Penpot format with varying fidelity.
Does Penpot need a GPU?
No. Rendering happens in the browser of each designer, and the exporter uses a headless browser on the CPU.
Can I keep assets outside the server?
Penpot can store assets in an S3-compatible object store through its storage settings. A local volume, as in this guide, is simpler for one server.
How many designers can share one instance?
That depends on file sizes and how many people edit at once. A 4 GB server suits a small team; watch the usage graphs and move up when memory stays high.
Is self-hosted Penpot free?
Yes. Penpot is open source under the MPL 2.0 license, and the self-hosted version has no seat limits.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- The Lounge IRC client
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM