# Self-host Redmine

> A mature project management and issue tracker with Gantt charts, wikis and time tracking, backed by Postgres.

- Page: https://levelrail.com/templates/redmine/
- JSON: https://levelrail.com/templates/redmine.json
- Category: Productivity
- Licence: GPL-2.0-or-later (Copyleft license)
- Source: https://github.com/redmine/redmine
- Upstream docs: https://www.redmine.org/projects/redmine/wiki/Guide

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | pgdata -> /var/lib/postgresql/data |
| redmine | redmine | 6-alpine | 3000 | files -> /usr/src/redmine/files |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| redmine | REDMINE_DB_DATABASE | preset |
| redmine | REDMINE_DB_PASSWORD | generated |
| redmine | REDMINE_DB_PORT | preset |
| redmine | REDMINE_DB_POSTGRES | preset |
| redmine | REDMINE_DB_USERNAME | preset |
| redmine | SECRET_KEY_BASE | generated |

## Deploy

### CLI

```bash
levelrail-cli templates install redmine --name my-redmine
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/redmine/install \
  -d '{
    "name": "my-redmine"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## Questions

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

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Redmine, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, redmine:6-alpine is what you deploy there.

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