Run the CRM locally
Get your Closeline package running on your computer with Docker: one command for the full stack, or one image for each app on its own.
For the Full Stack package
Before you start: install and open Docker Desktop, or Docker Engine with Compose.
View requirementsDownload your template
Open My templates and download the ZIP for your package.
Expected result: A file named like
closeline-full-stack-….zipis in your downloads.Unzip and open the folder
Open a terminal in the folder that holds the ZIP, then extract it and move into
closeline-full-stack. On Windows, extract it in File Explorer, then open a terminal in the folder.Terminalunzip -q closeline-full-stack-*.zip cd closeline-full-stack lsExpected result: The folder lists
Having trouble?back-end,dashboard,website,docker-compose.yml,QUICKSTART.md,README.mdandLICENSE.md.Start the apps
Build and start the API, the website and the dashboard. Nothing has to be configured first. The first start builds three images and fills the database with the sample workspace, which takes a few minutes; later starts take seconds. The website and the dashboard start once the API reports itself healthy.
Terminalincloseline-full-stackdocker compose up --buildA port is already in use?
If the start stops with
A port is already in useports are not available ... address already in use, another program uses 3030, 3031 or 8000. Either stop that program, or create a file named.envin thecloseline-full-stackfolder, besidedocker-compose.yml, with the port you need, such asADMIN_PORT=3041(SITE_PORTfor the website,API_PORTfor the API). Rundocker compose up --buildagain and open the app on its new port.Expected result: The three services keep running and the log stops scrolling. Leave this terminal open.
Having trouble?Open the website
Open localhost:3030Local. English is at
/enand Arabic at/ar. Its Sign in, Start free and plan buttons open the dashboard.Expected result: The website opens on its home page, with the pipeline preview and the plans.
Sign in to the dashboard
Open localhost:3031Local and sign in with
demo@closeline.exampleand the passwordCloselineDemo!2026: Lena Stone, the Admin of the sample workspace Studio Sales. For the Manager or the Member, typemanager@closeline.exampleormember@closeline.examplewith the same password. Change these passwords before the dashboard is reachable from the internet.Expected result: The dashboard opens on the overview of Studio Sales, with the deals that need attention and the forecast.
Having trouble?
Take a tour
What the sample workspace looks like once everything runs.
| Account | Role | What it opens | Password |
|---|---|---|---|
demo@closeline.example (Lena Stone) | Admin | Every deal, contact, activity, report and project, the assistant, the team and invitations, roles, settings and billing. Also the installation's Platform admin, who sees every account on the users pages | CloselineDemo!2026 |
manager@closeline.example (Alex Kim) | Manager | Every deal, contact, activity and project, the reports and the assistant; the team, the workspace settings and billing read-only | CloselineDemo!2026 |
member@closeline.example (Mina Noor) | Member | Her own deals, contacts, activities and projects, her own figures, the assistant and her own preferences; no team, workspace settings or billing | CloselineDemo!2026 |
The seed also adds eight sign-up accounts with workspaces of their own, so the users pages have accounts to list. They get random passwords and are not meant for signing in. A new account made on the dashboard's sign-up page gets a workspace of its own on a 14-day trial, where it is the Admin.
Stop and start again
Press Ctrl+C in the terminal to stop the apps, or run this from the closeline-full-stack folder. Your data, the database and the uploads, is kept in the closeline-data volume.
closeline-full-stackdocker compose downStart again with the same command as step 3. Without --build it reuses the images you already built.
closeline-full-stackdocker compose upKeep your data
docker compose down -v also deletes the data volume. The next start seeds a fresh copy of the sample workspace, and everything you created is gone.
Run the website
This package is the public website on its own. Built with an empty API address, it runs on its built-in sample data: the contact form is checked and answered in the browser and nothing is sent anywhere. Its Sign in, Start free and plan buttons open the dashboard at http://localhost:3031 unless you build it with another address.
Unzip and open the folder
Terminalunzip -q closeline-website-*.zip cd closeline-website lsExpected result:
Having trouble?lslistsDockerfile,package.json,QUICKSTART.mdandsrc, among others.Build the image
The
NEXT_PUBLIC_*values are compiled into the JavaScript the browser loads, so they are build arguments. The emptyNEXT_PUBLIC_API_BASE_URLbuilds the site on its sample data.Terminalincloseline-websitedocker build -t closeline-website --build-arg NEXT_PUBLIC_API_BASE_URL= .With the template's API running on
http://localhost:8000/api, build without the argument. On your own domains, pass each address:Terminalincloseline-websitedocker build -t closeline-website --build-arg NEXT_PUBLIC_SITE_URL=https://www.your-domain.com --build-arg NEXT_PUBLIC_API_BASE_URL=https://api.your-domain.com/api --build-arg NEXT_PUBLIC_DASHBOARD_URL=https://app.your-domain.com .Having trouble?Start it
If port
3030is taken, change the number on the left of-p, for example-p 3040:3030, and open that port instead. With an API, build withNEXT_PUBLIC_SITE_URLset to the new address and add it to the API'sCORS_ORIGIN.Terminalincloseline-websitedocker run -p 3030:3030 closeline-websiteExpected result: localhost:3030Local opens the home page with a "Sample data" notice at the top. English is at
Having trouble?/en, Arabic at/ar. Stop it with Ctrl+C.
Run the CRM dashboard
This package is the CRM dashboard on its own. Built with an empty API address, every screen works on its built-in sample data: any password signs in, and what you change is kept in that browser. To use the template's API instead, build without the argument, with the API running on http://localhost:8000/api.
Unzip and open the folder
Terminalunzip -q closeline-dashboard-*.zip cd closeline-dashboard lsExpected result:
Having trouble?lslistsDockerfile,package.json,QUICKSTART.mdandsrc, among others.Build the image
The empty
NEXT_PUBLIC_API_BASE_URLbuilds the dashboard on its sample data.Terminalincloseline-dashboarddocker build -t closeline-dashboard --build-arg NEXT_PUBLIC_API_BASE_URL= .For an API on your own domain, pass its address with
/api, the dashboard's own address and the website's address for the Help, Privacy and Terms links:Terminalincloseline-dashboarddocker build -t closeline-dashboard --build-arg NEXT_PUBLIC_API_BASE_URL=https://api.your-domain.com/api --build-arg NEXT_PUBLIC_BASE_URL=https://app.your-domain.com --build-arg NEXT_PUBLIC_WEBSITE_URL=https://www.your-domain.com .Having trouble?Start it and sign in
If port
3031is taken, change the number on the left of-p, for example-p 3041:3031, and open that port instead. With an API, build withNEXT_PUBLIC_BASE_URLset to the new address, and on the API add it toCORS_ORIGINand set it asDASHBOARD_URLandFRONTEND_URL.Terminalincloseline-dashboarddocker run -p 3031:3031 closeline-dashboardExpected result: localhost:3031Local opens the sign-in page with a "Sample data" notice. Any password signs in:
Having trouble?demo@closeline.exampleopens Lena Stone (Admin),manager@closeline.exampleAlex Kim (Manager),member@closeline.exampleMina Noor (Member), and any other email Lena Stone's account.
Run the API
This package is the NestJS API on its own, on a SQLite file kept in a Docker volume with the uploads. The website and the dashboard are separate packages and are not in this download.
Unzip and open the folder
Terminalunzip -q closeline-backend-*.zip cd closeline-backend lsExpected result:
Having trouble?lslistsDockerfile,package.json,QUICKSTART.mdandsrc, among others.Start it with the sample data
The first start on a new volume creates the database with the sample workspace and the sample accounts. The volume keeps the database and the uploads between runs. If port
8000is taken, change the number on the left of-p, for example-p 8010:8000, and add-e PUBLIC_API_URL=http://localhost:8010 -e PUBLIC_MEDIA_URL=http://localhost:8010/mediaso the links it writes use the new port. Its start-up line still names port8000, the port inside the container; the browser uses the one on the left of-p.Terminalincloseline-backenddocker run -p 8000:8000 -v closeline-api-data:/data closeline-apiExpected result: localhost:8000/
Having trouble?api/ healthLocal answers {"success":true,"data":{"status":"ok","database":"up"},"message":""}. Sign in atPOST /api/auth/loginwithdemo@closeline.exampleand the passwordCloselineDemo!2026.
The container accepts the website on http://localhost:3030 and the dashboard on http://localhost:3031. On other addresses, pass -e CORS_ORIGIN=https://www.your-domain.com,https://app.your-domain.com -e FRONTEND_URL=https://app.your-domain.com -e DASHBOARD_URL=https://app.your-domain.com.
Pass any other setting the same way, one -e each, such as the Stripe or mail values. Do not pass --env-file .env with a copy of .env.example: it sets NODE_ENV=development over the image's production default, which lets the API change the tables by itself on every start. Without a JWT_SECRET of your own the container generates one and keeps it in the volume.
For a real install, start a new volume without the sample data: -e SEED_SAMPLE_DATA=false with -e ADMIN_EMAIL=you@your-domain.com -e ADMIN_PASSWORD=... creates the tables and your first account with an empty workspace of its own.