# self-host-twenty-crm

Self-host Twenty CRM (server, worker, Postgres, Valkey) behind localhost, ready for a tunnel

- **Space:** crm-public (https://github.com/Tech-Realm/space-crm-public/tree/main/self-host-twenty-crm)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** TWENTY_PG_URL, TWENTY_SERVER_URL, TWENTY_APP_SECRET, TWENTY_PG_PASSWORD
- **Tools:** python3, docker
- **Routes:** self-host-docker; checks: 3
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use crm-public/self-host-twenty-crm` or MCP `get_pack crm-public/self-host-twenty-crm`
- **Files:** CHANGELOG.md, code/boot_check.sh, code/compose_lint.py, code/docker-compose.yml, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/bad-compose.yml, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

Self-host Twenty CRM (server, worker, Postgres, Valkey) behind localhost, ready for a tunnel

## Goal
A working Twenty CRM on our machine where we can create a company/person, see it in the list and export CSV.

## Steps
1. Copy code/docker-compose.yml to the host; write .env with the env names (values from `lp key`).
2. `bash code/boot_check.sh` -> BOOT OK.
3. Open http://127.0.0.1:3000, create the workspace, add one person, export the People view to CSV.
4. Expose via Cloudflare Tunnel + Access (cloudflare space) if needed.

## Edge cases
- Twenty upgrades run DB migrations: back up Postgres first.
- AGPL: if we modify Twenty and serve it to others we must publish the changes.

## Don'ts
- Don't use :latest.
- Don't expose Postgres/Valkey ports.



---

Canonical URL: https://logicpacks.io/packs/crm-public/self-host-twenty-crm

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
