> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-host OpenProject with Docker

> Project management with work packages, Gantt charts and boards.

Project management with work packages, Gantt charts and boards.

This page describes the Levelrail template for OpenProject (Productivity). It deploys the services below as one Docker Compose app on your own server. Project site: [https://www.openproject.org/docs/installation-and-operations/](https://www.openproject.org/docs/installation-and-operations/).

Recommended memory: about 2048 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `cache` | `memcached:1.6-alpine` | none | none |
| `cron` | `openproject/openproject:17.9.7-slim` | none | `opdata -&#62; /var/openproject/assets` |
| `db` | `postgres:17-alpine` | none | `pgdata -&#62; /var/lib/postgresql/data` |
| `seeder` | `openproject/openproject:17.9.7-slim` | none | `opdata -&#62; /var/openproject/assets` |
| `web` | `openproject/openproject:17.9.7-slim` | 8080 | `opdata -&#62; /var/openproject/assets` |
| `worker` | `openproject/openproject:17.9.7-slim` | none | `opdata -&#62; /var/openproject/assets` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `cron` | `DATABASE_URL` | Generated at deploy |
| `cron` | `OPENPROJECT_CACHE__MEMCACHE__SERVER` | Preset in the template |
| `cron` | `OPENPROJECT_HOST__NAME` | Preset in the template |
| `cron` | `OPENPROJECT_HTTPS` | Preset in the template |
| `cron` | `OPENPROJECT_RAILS__CACHE__STORE` | Preset in the template |
| `cron` | `OPENPROJECT_RAILS__RELATIVE__URL__ROOT` | Preset in the template |
| `cron` | `SECRET_KEY_BASE` | Generated at deploy |
| `db` | `POSTGRES_DB` | Preset in the template |
| `db` | `POSTGRES_PASSWORD` | Generated at deploy |
| `db` | `POSTGRES_USER` | Preset in the template |
| `seeder` | `DATABASE_URL` | Generated at deploy |
| `seeder` | `OPENPROJECT_CACHE__MEMCACHE__SERVER` | Preset in the template |
| `seeder` | `OPENPROJECT_HOST__NAME` | Preset in the template |
| `seeder` | `OPENPROJECT_HTTPS` | Preset in the template |
| `seeder` | `OPENPROJECT_RAILS__CACHE__STORE` | Preset in the template |
| `seeder` | `OPENPROJECT_RAILS__RELATIVE__URL__ROOT` | Preset in the template |
| `seeder` | `SECRET_KEY_BASE` | Generated at deploy |
| `web` | `DATABASE_URL` | Generated at deploy |
| `web` | `OPENPROJECT_CACHE__MEMCACHE__SERVER` | Preset in the template |
| `web` | `OPENPROJECT_HOST__NAME` | Preset in the template |
| `web` | `OPENPROJECT_HTTPS` | Preset in the template |
| `web` | `OPENPROJECT_RAILS__CACHE__STORE` | Preset in the template |
| `web` | `OPENPROJECT_RAILS__RELATIVE__URL__ROOT` | Preset in the template |
| `web` | `SECRET_KEY_BASE` | Generated at deploy |
| `worker` | `DATABASE_URL` | Generated at deploy |
| `worker` | `OPENPROJECT_CACHE__MEMCACHE__SERVER` | Preset in the template |
| `worker` | `OPENPROJECT_HOST__NAME` | Preset in the template |
| `worker` | `OPENPROJECT_HTTPS` | Preset in the template |
| `worker` | `OPENPROJECT_RAILS__CACHE__STORE` | Preset in the template |
| `worker` | `OPENPROJECT_RAILS__RELATIVE__URL__ROOT` | Preset in the template |
| `worker` | `SECRET_KEY_BASE` | Generated at deploy |

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

## Security and requirements

Level: **Standard**.

What this template needs:

* Passwords and keys are generated at deploy time (`cron`, `db`, `seeder`, `web`, `worker`): DATABASE\_URL, SECRET\_KEY\_BASE, POSTGRES\_PASSWORD.
* No health check, so a deploy is judged by the process starting (`seeder`).
* Stores data in named volumes (`cron`, `db`, `seeder`, `web`, `worker`): opdata, pgdata.

What Levelrail adds around it:

* Automatic HTTPS and an ingress shield in front of every domain.
* Secrets are generated, stored encrypted and masked in logs and the UI.
* Named volumes can be backed up and restored.
* Deploys are gated on the health check before traffic switches.
* One-step rollback to the previous revision.
* Exposure report shows what is reachable from outside.
* Host firewall rules managed for published ports.

## Deploy OpenProject with Levelrail

In the dashboard, open **Apps**, choose **New app**, then **Browse templates**, and select OpenProject. Review the Compose body and deploy.

With the CLI:

```bash theme={"dark"}
levelrail-cli templates deploy openproject --name my-openproject
```

See the [service template catalog](https://docs.levelrail.com/templates-and-registry.md) for how templates work, and [Getting started](https://docs.levelrail.com/getting-started.md) if you have not installed Levelrail yet.

## More Productivity templates

* [AFFiNE](https://docs.levelrail.com/self-host/affine.md)
* [AppFlowy](https://docs.levelrail.com/self-host/appflowy.md)
* [ArchiveBox](https://docs.levelrail.com/self-host/archivebox.md)
* [Baby Buddy](https://docs.levelrail.com/self-host/babybuddy.md)
* [Baikal](https://docs.levelrail.com/self-host/baikal.md)

All templates are listed in the [self-host gallery](https://docs.levelrail.com/self-host.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.