# Self-host OpenProject

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

- Page: https://levelrail.com/templates/openproject/
- JSON: https://levelrail.com/templates/openproject.json
- Category: Productivity
- Licence: GPL-3.0 (Copyleft license)
- Source: https://github.com/opf/openproject
- Upstream docs: https://www.openproject.org/docs/installation-and-operations/

## Requirements
- Memory: about 2 GiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 1.6-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| cache | memcached | 1.6-alpine | none | none |
| cron | openproject/openproject | 17.9.7-slim | none | opdata -> /var/openproject/assets |
| db | postgres | 17-alpine | none | pgdata -> /var/lib/postgresql/data |
| seeder | openproject/openproject | 17.9.7-slim | none | opdata -> /var/openproject/assets |
| web | openproject/openproject | 17.9.7-slim | 8080 | opdata -> /var/openproject/assets |
| worker | openproject/openproject | 17.9.7-slim | none | opdata -> /var/openproject/assets |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| cron | DATABASE_URL | generated |
| cron | OPENPROJECT_CACHE__MEMCACHE__SERVER | preset |
| cron | OPENPROJECT_HOST__NAME | preset |
| cron | OPENPROJECT_HTTPS | preset |
| cron | OPENPROJECT_RAILS__CACHE__STORE | preset |
| cron | OPENPROJECT_RAILS__RELATIVE__URL__ROOT | preset |
| cron | SECRET_KEY_BASE | generated |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| seeder | DATABASE_URL | generated |
| seeder | OPENPROJECT_CACHE__MEMCACHE__SERVER | preset |
| seeder | OPENPROJECT_HOST__NAME | preset |
| seeder | OPENPROJECT_HTTPS | preset |
| seeder | OPENPROJECT_RAILS__CACHE__STORE | preset |
| seeder | OPENPROJECT_RAILS__RELATIVE__URL__ROOT | preset |
| seeder | SECRET_KEY_BASE | generated |
| web | DATABASE_URL | generated |
| web | OPENPROJECT_CACHE__MEMCACHE__SERVER | preset |
| web | OPENPROJECT_HOST__NAME | preset |
| web | OPENPROJECT_HTTPS | preset |
| web | OPENPROJECT_RAILS__CACHE__STORE | preset |
| web | OPENPROJECT_RAILS__RELATIVE__URL__ROOT | preset |
| web | SECRET_KEY_BASE | generated |
| worker | DATABASE_URL | generated |
| worker | OPENPROJECT_CACHE__MEMCACHE__SERVER | preset |
| worker | OPENPROJECT_HOST__NAME | preset |
| worker | OPENPROJECT_HTTPS | preset |
| worker | OPENPROJECT_RAILS__CACHE__STORE | preset |
| worker | OPENPROJECT_RAILS__RELATIVE__URL__ROOT | preset |
| worker | SECRET_KEY_BASE | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy openproject --name my-openproject
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/openproject/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy OpenProject on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id openproject for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image memcached:1.6-alpine, openproject/openproject:17.9.7-slim, postgres:17-alpine, openproject/openproject:17.9.7-slim, openproject/openproject:17.9.7-slim, openproject/openproject:17.9.7-slim is what you deploy there.

Self-host OpenProject, OpenProject docker compose file, deploy OpenProject on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
