How to run Darwvin CRM on your own server and domain. One command installs PostgreSQL, the CRM and Caddy with automatic HTTPS; then you create the first administrator and enter your license key.
Create a DNS record for the domain you will use (for example crm.example.com) that points at the server, and wait until it resolves. Caddy needs it to obtain the HTTPS certificate.
Replace crm.example.com with your domain. The installer sets everything up in /opt/darwvin-crm: PostgreSQL, the CRM and Caddy with automatic HTTPS.
curl -fsSL https://darwvin.com/downloads/darwvin-crm/v1.1.2/install.sh | sh -s -- crm.example.comOpen your domain in a browser and create the first administrator account.
Paste the license key from your Gumroad email under Settings > License. Until you do, the CRM runs on Free limits: 2 users and 1,000 records.
Run the backup script, then copy the backup file off the server. Keep the CRM_SECRET_KEY line of /opt/darwvin-crm/.env with it: restored under another key, two-step sign-in, stored SMTP passwords and webhook secrets stop working.
/opt/darwvin-crm/backup.shOn a new server, run the installer but do not create an administrator. Set CRM_SECRET_KEY in /opt/darwvin-crm/.env to the old server's key and run docker compose up -d in /opt/darwvin-crm, then restore the backup file. The backup holds the installation's id and its license, so the restored CRM stays activated without entering the key again. After a move, switch the old server off: a license covers one installation. On a CRM already in use, add --replace: it backs up the current data first. A restore needs free disk space for a second copy of the database, plus that backup with --replace. If it fails, the current data stays as it was.
/opt/darwvin-crm/restore.sh crm-<time>.sql.gzBack up first (/opt/darwvin-crm/backup.sh), then run the installer of the new version with your domain. Settings and data stay; the CRM updates its database when it starts. What this version changes for your users: two-step sign-in arrives, and owners and admins (any role that can manage users, settings or billing) have 14 days to set up an authenticator app, after which their sign-in opens only the set-up page; when someone first turns on an authenticator app, every API key they made is revoked, so make new keys for your integrations; and API requests must send a JSON body with Content-Type: application/json (others get 415). The latest release also changes how a two-step reset works: when an administrator resets a member, that member's authenticator app is removed, they sign in once with the one-time code the administrator gets (it works for 7 days) and must set up a new app before they can use anything else; the owner or admin role can only be given to a member whose authenticator app is already on; and if you reset someone with the previous release because you suspected another person had their account, reset them again after upgrading, because that reset left the other person's app in place.
curl -fsSL https://darwvin.com/downloads/darwvin-crm/v1.1.2/install.sh | sh -s -- crm.example.comWith the domain pointing at the server, the install takes a few minutes. To move to a new server later, restore a backup there; the restored CRM keeps its license.