---
title: Install on your computer
project: Code
version: 2.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/code/2-0/guides/install-localhost/
updated: 2026-11-19T04:32:04.377Z
---

# Install on your computer

> Run Total.js Code on your own computer with Docker.

This installation runs Code in Docker on your computer and opens it at `http://code.localhost`.

## Before you start

Make sure Docker is installed and running. See the [requirements](../requirements/).

## Install Code

**1.** Download the official setup:

```bash
git clone https://github.com/totaljs/code-local
cd code-local
```

**2.** Open `docker-compose.yaml` in a text editor.

**3.** Replace `/your/local/path/apps` with the folder that holds your applications. It appears in two places: the `/www/www` volume and `FOLDER_WWW`.

**4.** Replace `/your/local/path/node_modules` in `FOLDER_NPM` with a folder for the shared Node.js modules.

**5.** Start Code:

```bash
docker compose up -d
```

**6.** Open `http://code.localhost` in your browser.

## Finish the setup

The first person who opens Code becomes its administrator, so [create the first administrator](../first-administrator/) now.

## Add your applications

When you [add a project](../add-project/), give it an address that ends in `.localhost`, for example `http://yourapp.localhost`.
