---
title: Install with Docker
project: OpenFiles
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openfiles/1-0/guides/install-docker/
updated: 2026-11-19T07:45:42.832Z
---

# Install with Docker

> Build a Docker image from the OpenFiles code and run it with your data in a volume.

The repository has a `Dockerfile`. You build the image yourself and run it with a volume, so your data survives when you recreate the container.

## Build and run

**1.** Get the code and open its folder:

```bash
git clone https://github.com/totaljs/openfiles.git
cd openfiles
```

**2.** Build the image:

```bash
docker build -t openfiles .
```

**3.** Start a container. OpenFiles listens on port 8000 inside the container, and the volume `openfiles` keeps the data:

```bash
docker run -d --name openfiles -p 8000:8000 -v openfiles:/www openfiles
```

**4.** Open `http://localhost:8000/`. The sign-in page shows the first-start account. See [First sign-in](../first-sign-in/).

## Where the data lives

Inside the container the app runs from `/www/.src/`, and the data is in `/www/.src/databases/`. Both are inside the `openfiles` volume. When you remove the container and start a new one with the same volume, your storages, files, API tokens and account are still there.

To see what is in the data folder:

```bash
docker exec openfiles ls /www/.src/databases
```

See [The data folder](../../reference/data-folder/).

## Stop and start

```bash
docker stop openfiles
docker start openfiles
```

Before you open OpenFiles to other people, read [Run in production](../production/).
