On this page
- Why run Redmine in Docker instead of building Ruby?
- How do you prepare the project folder and secrets?
- What does the Compose file look like?
- How do you add HTTPS in front of Redmine?
- What should you configure right after the first login?
- How do you send notification emails from Redmine?
- How do you install Redmine plugins?
- How do you back up and upgrade Redmine?
- Why do emails or links show the wrong address?
- Questions
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 baseWhat 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_PASSWORDdocker compose up -d
docker compose logs -f redmine
curl -I http://127.0.0.1:3000The 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, AlmaCaddy 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.netand 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 redmineUnder 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 redmineThe 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.yamlThe 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 redmineCopy 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.
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.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- The Lounge IRC client
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM