Log inSign up

Redmine issue tracking with Docker Compose

Use the official redmine:6 Docker image with a PostgreSQL container, bind it to 127.0.0.1:3000 and publish it on https://pm.example.net through Caddy. Sign in as admin/admin, change the password at once, load the default configuration and add SMTP details in configuration.yml so watchers get email updates.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

Why run Redmine in Docker instead of building Ruby?

Redmine is a Ruby on Rails application that supports only specific Ruby versions per release, and distribution packages often lag behind. The official image bundles a matching Ruby, gems and an entrypoint that runs database migrations at start, so upgrades become a tag change. The same steps work on Ubuntu 24.04/22.04, Debian 12/13, Rocky Linux 9 and AlmaLinux 9.

Plan for 1 to 2 GB of RAM for a small team. Install Docker with the Docker Engine tutorial or start from the Docker app image, and create a DNS record for pm.example.net pointing to 198.51.100.24.

How do you prepare the project folder and secrets?

Create a folder, two random values and an empty mail configuration file. The file must exist before the first start, or Docker creates a directory with that name instead.

sudo mkdir -p /opt/redmine/{files,plugins}
sudo chown -R deploy:deploy /opt/redmine
cd /opt/redmine
touch configuration.yml
openssl rand -hex 20     # database password
openssl rand -hex 64     # secret key base

What does the Compose file look like?

Save this as /opt/redmine/compose.yaml, with your two random values in place:

services:
  redmine:
    image: redmine:6
    restart: unless-stopped
    depends_on:
      - db
    ports:
      - "127.0.0.1:3000:3000"
    environment:
      REDMINE_DB_POSTGRES: db
      REDMINE_DB_DATABASE: redmine
      REDMINE_DB_USERNAME: redmine
      REDMINE_DB_PASSWORD: PASTE_DB_PASSWORD
      REDMINE_SECRET_KEY_BASE: PASTE_SECRET
    volumes:
      - ./files:/usr/src/redmine/files
      - ./plugins:/usr/src/redmine/plugins
      - ./configuration.yml:/usr/src/redmine/config/configuration.yml:ro
  db:
    image: postgres:17
    restart: unless-stopped
    volumes:
      - ./pgdata:/var/lib/postgresql/data
    environment:
      POSTGRES_DB: redmine
      POSTGRES_USER: redmine
      POSTGRES_PASSWORD: PASTE_DB_PASSWORD
docker compose up -d
docker compose logs -f redmine
curl -I http://127.0.0.1:3000

The log ends with the Puma web server listening once migrations finish. Loopback binding keeps port 3000 private; Docker would otherwise publish it past ufw and firewalld.

How do you add HTTPS in front of Redmine?

Caddy fetches a certificate automatically. After installing it as shown in Caddy HTTPS, use this Caddyfile:

pm.example.net {
    encode gzip
    reverse_proxy 127.0.0.1:3000
}
sudo systemctl reload caddy
sudo ufw allow 80,443/tcp                                          # Ubuntu, Debian
sudo firewall-cmd --permanent --add-service=http --add-service=https && sudo firewall-cmd --reload   # Rocky, Alma

Caddy forwards the original scheme and host, so Redmine builds correct links once you set them in the next step.

What should you configure right after the first login?

Sign in at https://pm.example.net with admin and password admin; Redmine forces a new password immediately. Then work through Administration:

  • Load the default configuration (trackers, statuses, roles) when prompted, in your language.
  • Under Settings, General, set Host name and path to pm.example.net and Protocol to HTTPS, so links in emails are right.
  • Under Settings, Authentication, require login and decide whether self-registration is allowed. Enable two-factor authentication for administrators.
  • Create your first project, add members and pick which trackers it uses.

How do you send notification emails from Redmine?

Mail settings live in configuration.yml. Point them at an authenticated relay on port 587 with STARTTLS:

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: "smtp.relay.example.net"
      port: 587
      enable_starttls_auto: true
      authentication: :login
      domain: "example.net"
      user_name: "relay-user"
      password: "relay-password"
docker compose restart redmine

Under Administration, Settings, Email notifications, set the emission address and press the link to send a test email. Port 25 should not be part of the plan unless support confirms it by ticket; the relay route is explained in SMTP relay for apps.

How do you install Redmine plugins?

Place each plugin in its own folder under /opt/redmine/plugins, using the folder name the plugin documentation requires, and check that it supports Redmine 6. Then restart so the entrypoint installs gems, and run the plugin migrations:

cd /opt/redmine/plugins
git clone https://github.com/example/redmine_sample_plugin.git
cd /opt/redmine
docker compose restart redmine
docker compose exec redmine bundle exec rake redmine:plugins:migrate RAILS_ENV=production
docker compose restart redmine

The repository URL above is a placeholder; use the one from the plugin you choose. Keep the list short: each plugin is code that must keep pace with Redmine upgrades.

How do you back up and upgrade Redmine?

A full backup is the PostgreSQL dump plus the attachments in files:

cd /opt/redmine
docker compose exec -T db pg_dump -U redmine redmine | gzip > ~/redmine-$(date +%F).sql.gz
tar czf ~/redmine-files-$(date +%F).tar.gz files configuration.yml compose.yaml

The redmine:6 tag follows the newest 6.x release. To upgrade within it, take the backup, then pull and recreate; migrations run on start. Moving to a new major version means changing the tag after checking that your plugins support it.

docker compose pull
docker compose up -d
docker compose logs --tail 40 redmine

Copy the archives off the server; daily backups describes the add-on and restic options.

Why do emails or links show the wrong address?

Redmine uses the host name from its settings, not the request, when it writes emails. If links show localhost:3000 or plain HTTP, fix Host name and path and Protocol in the general settings. If nothing is sent, read docker compose logs redmine for SMTP errors such as authentication failures, and verify the YAML indentation; a tab character breaks the file.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-2a small team1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
A2-4several projects and many attachments2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

Questions about Redmine project tracker

Can Redmine use MySQL or SQLite instead?

The official image also supports MySQL and MariaDB through REDMINE_DB_MYSQL, and falls back to SQLite when no database variable is set. PostgreSQL is used here for reliable dumps and concurrency.

How do I connect Git repositories?

Mount the repositories into the container read-only and add them in the project settings under Repositories. Redmine reads local repositories, so a bare clone kept in sync by a cron job works well.

Can customers open issues by email?

Yes. Redmine can fetch mail from an IMAP mailbox with a rake task run from cron and turn messages into issues. That needs a mailbox at your mail provider, not a mail server on the VPS.

How many users fit on a small plan?

A 2 GB plan comfortably serves a team of a few dozen active users. Attachments decide disk needs more than users do.

Is there a Redmine app image?

Not a dedicated one, but the Docker app image gives you Ubuntu 24.04 with Docker ready, which removes the first install step.