Skip to the article

CloselineRun the CRM locally

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 requirements
  1. Download your template

    Open My templates and download the ZIP for your package.

    Expected result: A file named like closeline-full-stack-….zip is in your downloads.

  2. 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.

    Terminal
    unzip -q closeline-full-stack-*.zip
    cd closeline-full-stack
    ls

    Expected result: The folder lists back-end, dashboard, website, docker-compose.yml, QUICKSTART.md, README.md and LICENSE.md.

    Having trouble?
  3. 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.

    Terminalin closeline-full-stack
    docker compose up --build

    A port is already in use?

    If the start stops with ports are not available ... address already in use, another program uses 3030, 3031 or 8000. Either stop that program, or create a file named .env in the closeline-full-stack folder, beside docker-compose.yml, with the port you need, such as ADMIN_PORT=3041 (SITE_PORT for the website, API_PORT for the API). Run docker compose up --build again and open the app on its new port.

    A port is already in use

    Expected result: The three services keep running and the log stops scrolling. Leave this terminal open.

    Having trouble?
  4. Open the website

    Open localhost:3030Local. English is at /en and 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.

  5. Sign in to the dashboard

    Open localhost:3031Local and sign in with demo@closeline.example and the password CloselineDemo!2026: Lena Stone, the Admin of the sample workspace Studio Sales. For the Manager or the Member, type manager@closeline.example or member@closeline.example with 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.

AccountRoleWhat it opensPassword
demo@closeline.example (Lena Stone)AdminEvery 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 pagesCloselineDemo!2026
manager@closeline.example (Alex Kim)ManagerEvery deal, contact, activity and project, the reports and the assistant; the team, the workspace settings and billing read-onlyCloselineDemo!2026
member@closeline.example (Mina Noor)MemberHer own deals, contacts, activities and projects, her own figures, the assistant and her own preferences; no team, workspace settings or billingCloselineDemo!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.

Terminalin closeline-full-stack
docker compose down

Start again with the same command as step 3. Without --build it reuses the images you already built.

Terminalin closeline-full-stack
docker compose up

Keep 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.

  1. Download your template

    Open My templates and download the CRM Website ZIP.

  2. Unzip and open the folder

    Terminal
    unzip -q closeline-website-*.zip
    cd closeline-website
    ls

    Expected result: ls lists Dockerfile, package.json, QUICKSTART.md and src, among others.

    Having trouble?
  3. Build the image

    The NEXT_PUBLIC_* values are compiled into the JavaScript the browser loads, so they are build arguments. The empty NEXT_PUBLIC_API_BASE_URL builds the site on its sample data.

    Terminalin closeline-website
    docker 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:

    Terminalin closeline-website
    docker 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?
  4. Start it

    If port 3030 is taken, change the number on the left of -p, for example -p 3040:3030, and open that port instead. With an API, build with NEXT_PUBLIC_SITE_URL set to the new address and add it to the API's CORS_ORIGIN.

    Terminalin closeline-website
    docker run -p 3030:3030 closeline-website

    Expected result: localhost:3030Local opens the home page with a "Sample data" notice at the top. English is at /en, Arabic at /ar. Stop it with Ctrl+C.

    Having trouble?

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.

  1. Download your template

    Open My templates and download the CRM Dashboard ZIP.

  2. Unzip and open the folder

    Terminal
    unzip -q closeline-dashboard-*.zip
    cd closeline-dashboard
    ls

    Expected result: ls lists Dockerfile, package.json, QUICKSTART.md and src, among others.

    Having trouble?
  3. Build the image

    The empty NEXT_PUBLIC_API_BASE_URL builds the dashboard on its sample data.

    Terminalin closeline-dashboard
    docker 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:

    Terminalin closeline-dashboard
    docker 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?
  4. Start it and sign in

    If port 3031 is taken, change the number on the left of -p, for example -p 3041:3031, and open that port instead. With an API, build with NEXT_PUBLIC_BASE_URL set to the new address, and on the API add it to CORS_ORIGIN and set it as DASHBOARD_URL and FRONTEND_URL.

    Terminalin closeline-dashboard
    docker run -p 3031:3031 closeline-dashboard

    Expected result: localhost:3031Local opens the sign-in page with a "Sample data" notice. Any password signs in: demo@closeline.example opens Lena Stone (Admin), manager@closeline.example Alex Kim (Manager), member@closeline.example Mina Noor (Member), and any other email Lena Stone's account.

    Having trouble?

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.

  1. Download your template

    Open My templates and download the Backend API ZIP.

  2. Unzip and open the folder

    Terminal
    unzip -q closeline-backend-*.zip
    cd closeline-backend
    ls

    Expected result: ls lists Dockerfile, package.json, QUICKSTART.md and src, among others.

    Having trouble?
  3. Build the image

    Terminalin closeline-backend
    docker build -t closeline-api .
    Having trouble?
  4. 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 8000 is 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/media so the links it writes use the new port. Its start-up line still names port 8000, the port inside the container; the browser uses the one on the left of -p.

    Terminalin closeline-backend
    docker run -p 8000:8000 -v closeline-api-data:/data closeline-api

    Expected result: localhost:8000/api/healthLocal answers {"success":true,"data":{"status":"ok","database":"up"},"message":""}. Sign in at POST /api/auth/login with demo@closeline.example and the password CloselineDemo!2026.

    Having trouble?

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.

Next

Stuck on a step?

Find a fix before you start over.

Troubleshooting

Cookie Preferences

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies for analytics and personalized advertising.