Running OpenProject in production with Docker Compose: when the official setup is enough
The official Compose setup can serve a single host in production once it is hardened, but it does not scale across several instances. If your team has a working trial and now needs a service that people depend on, the question is whether one well-configured host is the right target. For many teams with a single OpenProject instance, it is. The Compose project is cloned from opf/openproject-docker-compose on the stable/17 branch, and it starts the OpenProject application containers, a PostgreSQL database, a cache and the bundled Caddy proxy as one stack on one machine. Compose is a sensible fit when you control one server, one network segment and one backup routine, and when your user count and growth fit that host. It is a weaker fit when you need rolling upgrades without downtime, several web nodes behind a load balancer, or a database you want to run separately.
Before calling the stack production-ready, confirm three things with your own team. First, who owns the host, its patching and its disk, because Compose gives you no orchestration to replace a failed container or host. Second, whether the sizing guidance for your user count is met on that machine, since the Compose stack runs everything on one set of resources. Third, whether an outage of the single host is acceptable for your users. The OpenProject Docker Compose documentation lists the production notes you must act on, and this page's later sections cover each of them in detail.
Setting up the production Compose service step by step
This sequence turns the official OpenProject Compose setup into a service with a known repository branch, a TLS-terminated entry point, changed default secrets and persistent data, each confirmed before the next step begins.
Clone the stable Compose repository
The platform engineer clones the opf/openproject-docker-compose repository and checks out the stable/17 branch, so the team deploys the release line its upgrade plan follows rather than whatever sits on the default branch. Record the commit hash in your change log so you can reproduce the exact configuration later. Done means the working directory shows stable/17 as the current branch and the compose files for that branch are present. Confirm the branch name with the OpenProject Docker Compose documentation before you start, since branch names can change between major releases.
Select slim images and pin versions
Decide on the slim OpenProject image variant the Compose setup uses, and pin the image tags to a specific release instead of a floating tag. Pinned tags make upgrades deliberate: you test a new release in a staging copy, then change the tag in production. Done means the compose file references explicit version tags and a pull completes without errors. Check the release notes for the version you choose, because the release schedule and the database requirements for each release are documented there.
Set the port binding and host name
Decide whether OpenProject listens on all interfaces, which is the default on port 8080 bound to 0.0.0.0, or only on localhost through the PORT setting. If a proxy on the same host will publish the service, bind to localhost so the application port cannot be reached from the network. Done means the running container shows the intended binding, for example with a listening socket check on the host, and the host name in the configuration matches the public address users will type.
Place a TLS-terminating proxy in front
Put a reverse proxy in front of OpenProject that terminates TLS, using the bundled Caddy proxy or your own proxy with a certificate your organization manages. The proxy is the only public entry point and forwards requests to the application. Done means the login page loads over HTTPS with a certificate your browser trusts, and an HTTP request redirects to HTTPS. Also confirm that a direct request to the host on port 8080 from outside the network fails, which shows the application is not exposed around the proxy. Certificate issuance and renewal are the responsibility of your team or your certificate provider, so confirm who owns those tasks before go-live.
Replace the default admin login
Sign in with the default admin account, change its password immediately, and create named administrator accounts for the people who will run the instance. Retire or lock the default admin account once a named administrator has been verified. Done means the default admin/admin combination no longer works and a named administrator can sign in, change settings and see the administration pages. Record who holds administrator rights in your access register, because this account controls every project and integration.
Set a unique secret key base and collaboration secret
Generate a unique SECRET_KEY_BASE value and store it in your secrets manager, not in the repository. Replace the shared secret used by the collaboration server with a new value as well. Set both in the environment configuration that Compose reads, then restart the stack. Done means the application starts with the new values, existing sessions are signed out as expected, and the configuration files in version control contain no secret values. Keep a copy of the secrets in your recovery documentation, because losing the key base can affect data that depends on it.
Persist the application and database volumes
Map named or host-path volumes for the OpenProject data directory and the PostgreSQL data directory, so attachments and database content survive container recreation. Confirm that the volumes are outside the container filesystem and that backup jobs target them. Done means you can stop and remove the containers, start them again, and find the same projects and attachments. Run a test restore on a separate host before relying on the volumes, and note that Compose runs on a single host, so these volumes do not replicate data to other machines.
Confirm single-host limits before go-live
Document that this Compose service runs on one host and is not horizontally scalable across several instances without additional tools, as stated in the OpenProject scaling documentation. Agree with stakeholders when the platform would need Kubernetes or another multi-host design, and record the user count and load at which you would review that decision. Done means the operations runbook names the single host, its backup location and the review trigger. Ask your architecture team to confirm the expected user load against the OpenProject sizing guidance before you commit.
Compose production choices and when each one fits
This table compares the four decisions a team makes when turning the Compose setup into a service: network binding, the proxy in front of it, where the database lives, and whether one host is enough. Read each row as a question to answer for your environment, then follow the sibling topics for the detailed steps. The main takeaway is that Compose suits a single host well, and anything that needs several instances points toward Kubernetes with Helm.
| Decision | Option | Trade-off | When it fits |
|---|---|---|---|
| Network binding | Bind to 0.0.0.0 (default on port 8080) | Reachable from any interface on the host, so firewall rules must restrict access before the proxy is live | Only when a proxy or load balancer on another interface must reach the container |
| Network binding | Bind to localhost through the PORT setting | Nothing outside the host can connect directly, which keeps the app behind your proxy | Recommended when a reverse proxy runs on the same host |
| Proxy in front | Bundled Caddy proxy | Fastest route to HTTPS with the official setup, but Caddy becomes part of your certificate and header handling | Single-host installs without an existing edge proxy |
| Proxy in front | Existing reverse proxy or load balancer | Your team owns TLS, body size limits, trusted proxy settings and renewal, which adds configuration work | When the organization already standardizes on an edge proxy or WAF |
| Database location | Bundled PostgreSQL in a Docker volume | Simple to start, but backups, upgrades and recovery rest on your own volume and dump routine | Small pilots or teams that already run volume-level backups |
| Database location | External PostgreSQL server | Requires PostgreSQL 16 or later with pg_trgm, btree_gist and unaccent, plus a Compose override and connection settings | Managed or shared database services that your DBA team already operates |
| Hosting model | One host with Docker Compose | One failure domain and no built-in horizontal scaling, so host sizing and restore time carry the availability risk | Teams that accept a single host and planned maintenance windows |
| Hosting model | Kubernetes with the Helm chart | More moving parts to run, but the documented route for horizontal scaling across instances | When user growth or availability needs exceed what one Compose host can serve |
How the Compose services and trust boundaries fit together
The diagram starts with users reaching the bundled proxy over HTTPS on the host, which is where TLS terminates in the default setup. The proxy forwards requests on the internal Docker network to the OpenProject web container, which shares the database and the collaboration server with the background workers. Check which services publish ports to the host, since the Compose setup serves on port 8080 bound to 0.0.0.0 unless you restrict it to localhost, and confirm that the data and database volumes sit on storage you back up.
Single host Compose layout with the internal network and volumes.
Secrets to change and data that must survive a restart
A Compose install that starts without errors can still be unsafe or fragile. The default admin login, the secret key base, the collaboration server secret, and the volumes that hold attachments and the database all decide whether the instance is secure and whether it can be recovered after a host failure. Check each one before the service takes real work.
Default admin login
The official Compose setup ships with a default admin/admin login. Anyone who can reach the port before the password is changed can take full control of the instance, including users, projects and settings. Change the password on first sign-in and confirm that no other account still uses a default or shared credential. Confirm who holds administrator rights and whether you want a separate break-glass account kept offline.
SECRET_KEY_BASE
SECRET_KEY_BASE is used by the application to sign and encrypt session data and other values. The setup documentation asks you to replace it with a unique value rather than keep the example. Generate a long random value, store it in your secrets manager, and pass it to the container through your environment file. Changing it later invalidates existing sessions, so decide it before users are onboarded.
Collaboration server secret
OpenProject 17 documents use a collaboration server, and the Compose setup includes a shared secret between the application and that server. The default value must be replaced with a unique one. Confirm that both the application and the collaboration service read the same new value after any change, and that the secret is kept out of version control. If real-time editing fails after a change, check this value first.
Volumes for attachments and database
Uploaded files and PostgreSQL data live in Docker volumes on the host. If these volumes are removed with the containers, or the host is rebuilt without them, users lose their work packages' attachments and the project history. Name the volumes explicitly, record the host path they map to, and confirm that a docker compose down does not remove them. Keep the database and attachments on storage with enough free space for growth.
Backups of those volumes
A volume on the same disk is not a backup. Take regular copies of the database and the attachment volume, and keep at least one copy off the host. Test a restore into a separate environment before you rely on the process, and record how long it takes. Confirm the backup frequency, retention period and who is responsible for checking that restores succeed. Also confirm that the secrets above are stored with the backup plan, since a restore without the original SECRET_KEY_BASE will not reproduce a working session.
Why Docker Compose does not scale across hosts
The OpenProject scaling documentation states that Docker Compose is not horizontally scalable across several instances without additional tools. In practice, a Compose deployment is one application stack on one host: the web processes, background workers, the bundled database and the proxy all share that host's CPU, memory and disk. Adding capacity means a bigger host, not more instances of the same stack. Before committing, check the OpenProject scaling documentation for the current guidance on what additional tooling is required.
Capacity planning is the first consequence. The sizing guide suggests 4 cores and 4 GB RAM for up to 200 users, 8 cores and 8 GB for about 500 users, and 16 cores and 16 GB for about 1,500 users. A single Compose host has to meet the figure for your user count with headroom for workers, the database and backups running at the same time. Failover is the second. If that host fails, the whole service stops until it is restored, so recovery time depends on your backup and restore process, which you should rehearse. Maintenance is the third: upgrades and host patching usually require a window in which the single stack is down, so agree that window with the teams who depend on it.
Move toward the Kubernetes path with the Helm chart when you need more than one OpenProject instance serving traffic, when a single host cannot meet your sizing figure, or when your availability target cannot tolerate a restore-based recovery. Confirm with your platform team whether a Kubernetes cluster you control already exists, because the operational cost of running one is the real decision, not the chart itself. Keep your current Compose stack as the reference for data and configuration during any move, and plan the database and attachment storage separately, since those carry most of the migration risk.
Security and operational controls for a Compose host
A Compose deployment is only as safe as the host it runs on. The controls below cover the server, the network edge, the certificates, the images, the logs and the secrets, and each one needs an owner before go-live. Confirm the specifics with your security team, since the controls that apply depend on your hosting model and policies.
Host hardening baseline
The Docker host runs the OpenProject containers, the bundled proxy and the database, so its operating system is part of the attack surface. Agree a hardening baseline with your security team covering patch cadence, SSH access, administrative accounts, time sync and disk encryption. Confirm who may log in to the host and whether the Docker daemon socket is accessible to anyone beyond that small group, because socket access is effectively root access.
Firewall rules around the proxy
The official Compose setup serves on port 8080 bound to all interfaces unless PORT restricts it to localhost. In production, bind the application to localhost or a private interface and allow inbound traffic only on the ports your TLS-terminating proxy listens on. Confirm that the database and any admin ports are not reachable from other networks, and test the rules from outside the host rather than trusting the configuration file.
Compose install docsTLS certificate renewal
A TLS-terminating proxy in front of OpenProject needs certificates that renew without manual steps. Decide who owns the certificate authority relationship, how renewal is automated, and how expiry is monitored, and test a renewal before the first expiry date arrives. Confirm with your security team which certificate authority and key lengths they accept, and whether internal certificates need to be trusted by the proxy and by OpenProject's outbound calls.
Image update cadence
The Compose setup pulls images for OpenProject, the proxy and supporting services, so each update is a change to the running system. Set a fixed cadence for reviewing OpenProject release notes and security fixes, and pin the stable branch you deploy rather than tracking a moving target. Test each update in a staging copy with a database backup taken first, and confirm with your change board how emergency security patches are approved.
Release notesLog collection and retention
Container logs are written by the Docker engine and disappear with the container unless they are collected elsewhere. Forward proxy access logs, application logs and database logs to your central logging platform, and set retention to match your audit and incident response requirements. Confirm that logs never contain secrets or personal data beyond what your data protection policy allows, and that log access is limited to the people who need it.
Secret storage outside the repository
The production notes call for a unique SECRET_KEY_BASE, a replaced collaboration server secret and a changed default admin login. Keep these values in a secrets store or an environment file with restricted permissions, never in the cloned repository or in shared chat. Record who can read and rotate each secret, and confirm the rotation procedure with your security team before the first rotation is needed.
Questions teams ask before running OpenProject on Compose
Is running OpenProject on Docker Compose free?
The software itself is free to run. OpenProject is licensed under GPL-3.0, and the Community edition includes work packages, Gantt charts, agile boards, time tracking and dashboards, with community support. The costs that remain are your own: the host or cloud instance, storage, backups, DNS, certificates, and the staff time to operate it. Enterprise on-premises is priced per named user per month, with Basic at 5.95 euros and Professional at 10.95 euros (25-user minimum), Premium at 15.95 euros (100-user minimum), and Corporate on request for 250 or more users. You only need Enterprise if you want features such as single sign-on through SAML, OIDC, CAS, Kerberos or Okta, LDAP group synchronization or custom branding. Confirm current prices on the OpenProject pricing page before budgeting.
Can an internal team set up OpenProject on Compose without outside help?
Yes, a team with Linux, Docker and reverse proxy experience can usually complete a first production cut alone, provided it has time to test restores and handle upgrades. The official Compose setup is a published starting point, so the work is mostly hardening: binding the port, enabling HTTPS mode, replacing the default admin login, setting a unique SECRET_KEY_BASE, replacing the collaboration server secret, and placing the service behind a TLS-terminating proxy. The harder parts are sizing, backup and restore testing, and a repeatable upgrade routine across releases. Outside help is most useful when the internal team lacks someone to own those operations, or when the deployment must meet specific audit or network requirements.
What does the server need from our team before go-live?
Plan for a Linux host with Docker, a DNS record for the public host name, a valid TLS certificate or a proxy that issues one, outbound access or a mirror for container images, and a place for backups that is separate from the host. Compose keeps data and database contents in volumes, so you need a backup routine that captures both the database and the attachment data, plus a tested restore. Mail delivery, identity provider connections and firewall rules for the proxy also need owners. Sizing guidance from OpenProject suggests 4 cores and 4 GB RAM for up to 200 users, 8 cores and 8 GB for about 500 users, and 16 cores and 16 GB for about 1,500 users. Confirm the exact figures against the system requirements for your release.
How long does a first production cut of OpenProject take?
The duration depends mainly on scope, and no fixed figure applies to every organization. The work divides into a base install from the stable branch, production hardening, proxy and certificate setup, identity integration, mail configuration, data migration, and a restore test. A single-team instance with local accounts and no migration is the shortest path. Adding SSO, a Jira migration, external PostgreSQL or custom branding adds planning and testing time. Ask any provider for a written scope with milestones, and check that the plan includes a restore test before users are onboarded.
What drives the cost of running OpenProject on Compose?
Cost comes from four places: infrastructure, labor, licenses and recurring operations. Infrastructure scales with user count and with whether you add a separate database or object storage. Labor is the largest one-time item when your team is new to the stack, and it recurs for upgrades, backups checks and monitoring. Licenses only apply if you choose Enterprise features, and the per-user pricing makes the seat count the main driver. Recurring costs include patching the host, rotating secrets and reviewing release notes, since the 17.x line has seen several point releases. When requesting a quote, ask for a written scope, what is one-time versus recurring, the assumed user count and the upgrade approach.
When should we move OpenProject from Compose to Kubernetes or packages?
Move off Compose when you need more than one application instance across hosts, because Docker Compose is not horizontally scalable across several instances without additional tools. OpenProject supports Kubernetes with Helm charts for horizontal scaling, so that path fits a platform team that already runs clusters. Move to the DEB or RPM packages when your organization prefers systemd services and distribution-managed patching on supported systems such as Ubuntu 22.04, Debian 12, RHEL 9.x or SUSE Linux Enterprise Server 15. Also consider an external PostgreSQL server (supported from PostgreSQL 16 with the pg_trgm, btree_gist and unaccent extensions) if your database team already manages backups and high availability.
Does Compose work with SSO and Jira migration?
Compose supports both, but each adds a separate plan. Single sign-on through SAML, OIDC, CAS, Kerberos or Okta is an Enterprise feature, so budget for a license before you configure it. The Jira Migrator imports from Jira Data Center 10.x and 11.x only, not Jira Cloud, and it is in beta with documentation advising test setups only. It imports projects, issues, versions, custom fields, users, groups, statuses and types, while issue relations, sprint assignments, workflows and permissions are listed as coming soon or later. Treat the migration as a separate project with its own test runs and field mapping review.
Is the Compose setup ready for regulated production use on its own?
The Compose setup is a starting point, not a complete control set. It gives you a working service, but regulated operations also need documented access control, encrypted transport, backup and restore evidence, logging, patch cadence and change records. Those controls belong to your organization and are assessed by your own auditors or certification bodies. DeployOpen can plan and implement the technical configuration, prepare the evidence your compliance team asks for, and test the setup, but it does not issue audit reports or certifications. Ask your assessor early which controls they expect the platform to show.
How DeployOpen scopes and delivers a Compose production service
A Compose production service starts with a written, fixed scope agreed before any host is touched. DeployOpen sets out which components are in scope: the host or hosts that will run the stack, the reverse proxy and its TLS setup, the .env values and secrets to replace, the volumes that hold application data and the PostgreSQL database, backup and restore procedures, and the handover documents for the team that will run it. Deliverables, acceptance checks and the environment each piece runs in are written down so the client can compare the quote with the work described. All of this is planned inside the client's own cloud accounts, data centers or private networks, so the client keeps control of the infrastructure, the keys and the data throughout.
During delivery, DeployOpen works through the production decisions in order: the host and its network exposure, the proxy in front of the bundled Caddy service, the HTTPS mode, the admin credentials, the SECRET_KEY_BASE and collaboration server secret, and the backup schedule for volumes and the database. Hardening and backup setup are tested with a restore rehearsal before handover, and the operator documentation records what was configured, why, and how to check it. Where the client wants ongoing help, upgrades to new stable releases, monitoring follow-up and continuous security testing can be covered by a retainer agreed separately. DeployOpen prepares systems, controls and evidence for compliance reviews, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations.

