---
title: Install with Docker
project: OpenPlatform
version: 5
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openplatform/5/guides/install-docker/
updated: 2026-11-19T04:31:09.310Z
---

# Install with Docker

> Run the official OpenPlatform image against your PostgreSQL database.

The official image is `totalplatform/openplatform`. It needs a PostgreSQL database that the container can reach.

## Start the container

Replace the connection string with the one for your database:

```bash
docker run -d --name openplatform \
  --env DATABASE='postgresql://user:password@hostname:5432/openplatform' \
  -p 8000:8000 \
  -v openplatform-data:/www/databases \
  totalplatform/openplatform
```

| Option | What it does |
|---|---|
| `DATABASE` | The PostgreSQL connection string. |
| `-p 8000:8000` | Publishes the portal on port 8000. |
| `-v openplatform-data:/www/databases` | Stores the data folder of the app, which holds uploaded files, in a named volume. |

Inside a container, `localhost` means the container itself. Use a host name or address that the container can reach.

## Open the portal

Open `http://127.0.0.1:8000` in your browser, then continue with the [first sign-in](../first-sign-in/).
