Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Complete reorg of installation and ops guide

Cyril Rohr30e413a7ccef
diff --git a/help/installation-and-operations/configuration/README.md b/help/installation-and-operations/configuration/README.md
index 581ad8369c2..7f1eb3e3178 100644
--- a/help/installation-and-operations/configuration/README.md
+++ b/help/installation-and-operations/configuration/README.md
@@ -6,4 +6,12 @@ sidebar_navigation:
# Advanced configuration
-TODO
+| ----------- | :---------- |
+| [List of supported environment variables](./env-variables) | TODO: The full list of environment variables you can use to override the default configuration |
+| [Configuring SSL](./ssl) | How to configure SSL so that your OpenProject installation is available over HTTPS |
+| [Configuring outbound emails](./outbound-emails) | How to configure outbound emails for notifications, etc. |
+| [Configuring inbound emails](./inbound-emails) | TODO: How to configure inbound emails for work package updates directly from an email |
+| [Configuring a custom database](./database) | How to use an external database |
+| [Configuring a custom web server](./server) | TODO: How to use a custom web server (e.g. NginX) with your OpenProject installation |
+| [Configuring a custom web server](./cache) | TODO: How to use a custom caching server with your OpenProject installation |
+| [Adding plugins](./plugins) | TODO: How to add plugins to your OpenProject installation |
diff --git a/help/installation-and-operations/configuration/database.md b/help/installation-and-operations/configuration/database.md
new file mode 100644
index 00000000000..f7d8d3e929d
--- /dev/null
+++ b/help/installation-and-operations/configuration/database.md
@@ -0,0 +1,25 @@
+---
+sidebar_navigation:
+ title: Configuring a custom database server
+ priority: 6
+---
+
+# Configuring a custom database server
+
+## Package-based installation
+
+Simply run `sudo openproject reconfigure`, and when the database wizard is displayed, select the **Use an existing PostgreSQL database** option and fill in the required details ([cf the initial configuration section](../installation/packaged/#step-1-postgresql-database-configuration))
+
+## Docker-based installation
+
+You can simply pass a custom `DATABASE_URL` environment variable on the
+docker command-line, which could point to an external database.
+
+Example:
+
+```bash
+docker run -d ... -e DATABASE_URL=mysql2://user:pass@host:port/dbname openproject/community:10
+```
+
+The docker image will make sure that the database gets the migrations and demo
+data as well.
diff --git a/help/installation-and-operations/configuration/outbound-emails.md b/help/installation-and-operations/configuration/outbound-emails.md
new file mode 100644
index 00000000000..97ac49bb43b
--- /dev/null
+++ b/help/installation-and-operations/configuration/outbound-emails.md
@@ -0,0 +1,55 @@
+---
+sidebar_navigation:
+ title: Configuring outbound emails
+ priority: 8
+---
+
+# Configuring outbound emails
+
+By default, both the docker and package-based installations will setup a postfix server to allow sending emails from your server. While it is a good starting point, it is not a recommended production setup since you will most likely run into delivery issues since your server will lack the trust of a proper email provider.
+
+In this guide we will describe how to configure outbound emails using an external SMTP server.
+
+## Requirements
+
+You will need to have SMTP settings ready. Those can eiher be from a company
+SMTP server, a GMail account, or a public provider such as
+[SendGrid](https://www.sendgrid.com/).
+
+Taking SendGrid as an example, you would need to sign up on their website (they
+offer a free plan with up to 12000 emails per month), and once your account is
+provisioned, generate a new API key and copy it somewhere (it looks like
+`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`). You
+could also simply use your SendGrid username and password, but this is less
+secure.
+
+You can adjust those settings for other SMTP providers, such as GMail,
+Mandrill, etc. Please refer to the documentation of the corresponding provider
+to see what values should be used.
+
+## Package-based installation (DEB/RPM)
+
+If you installed OpenProject with the package-based installation, simply run `sudo openproject reconfigure`, and when the email wizard is displayed, select the **SMTP** option and fill in the required details ([cf the initial configuration section](../installation/packaged/#step-4-outgoing-email-configuration))
+
+## Docker installation
+
+If you installed OpenProject with Docker, here is how you would enable outbound
+emails through the use of the SMTP environment variables (with SendGrid, the
+`SMTP_USER_NAME` is always `apikey`. Just replace `SMTP_PASSWORD` with the API
+key you've generated and you should be good to
+go):
+
+```bash
+docker run -d \
+ -e EMAIL_DELIVERY_METHOD=smtp \
+ -e SMTP_ADDRESS=smtp.sendgrid.net \
+ -e SMTP_PORT=587 \
+ -e SMTP_DOMAIN=my.domain.com \
+ -e SMTP_AUTHENTICATION=login \
+ -e SMTP_ENABLE_STARTTLS_AUTO=true \
+ -e SMTP_USER_NAME="apikey" \
+ -e SMTP_PASSWORD="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" \
+ ...
+```
+
+
diff --git a/help/installation-and-operations/configuration/ssl.md b/help/installation-and-operations/configuration/ssl.md
new file mode 100644
index 00000000000..2bceb244d8a
--- /dev/null
+++ b/help/installation-and-operations/configuration/ssl.md
@@ -0,0 +1,31 @@
+---
+sidebar_navigation:
+ title: Configuring SSL
+ priority: 9
+---
+
+# Configuring SSL
+
+## Package-based installation (DEB/RPM)
+
+SSL configuration can be applied on the first installation, or at any time by reconfiguring the application with:
+
+```bash
+sudo openproject reconfigure
+```
+
+You will be prompted with the same dialogs than on the [initial configuration](initial_configuration) guide. This assumes that you select the **install** option when the **server/autoinstall** dialog appears, and that you have certificate and key files available on your server at a path you know.
+
+[initial_configuration]: ../installation/packaged/#install-apache2-web-server-default
+
+## Docker-based installation
+
+The current Docker image does not support SSL by default. Usually you would
+already have an existing Apache or NginX server on your host, with SSL
+configured, which you could use to set up a simple ProxyPass rule to direct
+traffic to the container.
+
+If you really want to enable SSL from within the container, you could try
+mounting a custom apache2 directory when you launch the container with `-v
+my/apache2/conf:/etc/apache2`. This would entirely replace the configuration
+we're using.
diff --git a/help/installation-and-operations/installation/docker.md b/help/installation-and-operations/installation/docker.md
index a4da67cae9c..3a6ba29bc62 100644
--- a/help/installation-and-operations/installation/docker.md
+++ b/help/installation-and-operations/installation/docker.md
@@ -18,14 +18,16 @@ Also, please note that the Docker image is quite new and might not support all
the options that the package-based or manual installation provides.
[docker]: https://www.docker.com/
-[docker-install]: https://docs.docker.com/engine/installation/
+[docker-install]: https://docs.docker.com/install/
-### Quick Start
+## Quick Start
The fastest way to get an OpenProject instance up and running is to run the
following command:
- docker run -it -p 8080:80 -e SECRET_KEY_BASE=secret openproject/community:8
+```bash
+docker run -it -p 8080:80 -e SECRET_KEY_BASE=secret openproject/community:10
+```
This will take a bit of time the first time you launch it, but after a few
minutes you should see a success message indicating the default administration
@@ -41,9 +43,11 @@ the logs to your terminal, which helps with debugging if anything goes wrong.
For normal usage you probably want to start it in the background, which can be
achieved with the `-d` flag:
- docker run -d -p 8080:80 -e SECRET_KEY_BASE=secret openproject/community:8
+```bash
+docker run -d -p 8080:80 -e SECRET_KEY_BASE=secret openproject/community:10
+```
-# Recommended usage
+## Recommended usage
The one-liner above is great to get started quickly, but if you want to run
OpenProject in production you will likely want to ensure that your data is not
@@ -57,109 +61,64 @@ You can use the following commands to create the local directories where the
data will be stored across container restarts, and start the container with
those directories mounted:
- sudo mkdir -p /var/lib/openproject/{pgdata,static}
+```bash
+sudo mkdir -p /var/lib/openproject/{pgdata,static}
- docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
- -v /var/lib/openproject/pgdata:/var/openproject/pgdata \
- -v /var/lib/openproject/static:/var/openproject/assets \
- openproject/community:8
+docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
+ -v /var/lib/openproject/pgdata:/var/openproject/pgdata \
+ -v /var/lib/openproject/static:/var/openproject/assets \
+ openproject/community:10
+```
Since we named the container, you can now stop it by running:
- docker stop openproject
+```bash
+docker stop openproject
+```
And start it again:
- docker start openproject
+```bash
+docker start openproject
+```
If you want to destroy the container, run the following commands
- docker stop openproject && docker rm openproject
+```bash
+docker stop openproject
+docker rm openproject
+```
-# Configuration
+## Initial configuration
OpenProject is usually configured through a YAML file, but with the Docker
image you need to pass all configuration through environment variables. You can
overwrite any of the values usually found in the standard YAML file by using
-environment variables as explained in the [CONFIGURATION][configuration-doc]
-documentation.
+[environment variables](list_of_env_variables).
Environment variables can be either passed directly on the command-line to the
Docker Engine, or via an environment file:
- docker run -d -e KEY1=VALUE1 -e KEY2=VALUE2 ...
- docker run -d --env-file path/to/file ...
+```bash
+docker run -d -e KEY1=VALUE1 -e KEY2=VALUE2 ...
+# or
+docker run -d --env-file path/to/file ...
+```
-[configuration-doc]: https://github.com/opf/openproject/blob/dev/docs/configuration/configuration.md
+For more advanced configuration, please have a look at the [Advanced configuration](advanced_configuration) section.
-# SMTP configuration
+[list_of_env_variables]: ../configuration/env-variables
+[advanced_configuration]: ../configuration
-By default, the docker container will try to send emails via the local
-`postfix` daemon. However emails sent this way are more than likely to fail or
-end up in the spam inbox of your users. We recommend using an external SMTP
-server to send your emails.
+## Launching a specific process instead of the all-in-one installation
-A good choice is [SendGrid](https://www.sendgrid.com/), which offers a free plan
-with up to 12000 emails per month. Just sign up on the website, and once your
-account is provisioned, generate a new API key and copy it somewhere (it looks
-like `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`).
-You can also just use your SendGrid username and password, but this is less
-secure.
+OpenProject is made of multiple processes (web, worker, cron, etc.). By default the docker image will launch all those processes within a single container for ease of use. However some use cases might require that you only launch one process per container, in which case you should override the docker command to specify the process you want to launch.
-You can then configure OpenProject with the following additonal environment
-variables (with SendGrid, the `SMTP_USER_NAME` is always `apikey`. Just replace
-`SMTP_PASSWORD` with the API key you've generated and you should be good to
-go):
-
- docker run -d \
- -e EMAIL_DELIVERY_METHOD=smtp \
- -e SMTP_ADDRESS=smtp.sendgrid.net \
- -e SMTP_PORT=587 \
- -e SMTP_DOMAIN=my.domain.com \
- -e SMTP_AUTHENTICATION=login \
- -e SMTP_ENABLE_STARTTLS_AUTO=true \
- -e SMTP_USER_NAME="apikey" \
- -e SMTP_PASSWORD="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" \
- ...
-
-You can adjust those settings for other SMTP providers, such as GMail,
-Mandrill, etc. Please refer to the documentation of the corresponding provider
-to see what values should be used.
-
-# FAQ
-
-* Can I use SSL?
-
-The current Docker image does not support SSL by default. Usually you would
-already have an existing Apache or NginX server on your host, with SSL
-configured, which you could use to set up a simple ProxyPass rule to direct
-traffic to the container.
-
-If you really want to enable SSL from within the container, you could try
-mounting a custom apache2 directory when you launch the container with `-v
-my/apache2/conf:/etc/apache2`. This would entirely replace the configuration
-we're using.
-
-
-* Can I use an external (MySQL or PostgreSQL) database?
-
-Yes. You can simply pass a custom `DATABASE_URL` environment variable on the
-command-line, which could point to an external database. You can even choose to
-use MySQL instead of PostgreSQL if you wish. Here is how you would do it:
-
- docker run -d ... -e DATABASE_URL=mysql2://user:pass@host:port/dbname openproject/community:8
-
-The container will make sure that the database gets the migrations and demo
-data as well.
-
-* I don't want the all-in-one installation. Can I still use the image to launch a specific process?
-
-Yes, you can do so by passing a command when you launch the container. By default the container will run `./docker/supervisord`, but you can override this with `./docker/web`, `./docker/worker`, `./docker/cron` to launch the individual services separately (e.g. in a docker-compose file). Please note that in this configuration you will have to setup the external services (postgres, memcached, email sending) by yourself.
+By default the container will run `./docker/supervisord`, but you can override this with `./docker/web`, `./docker/worker`, `./docker/cron` to launch the individual services separately (e.g. in a docker-compose file). Please note that in this configuration you will have to setup the external services (postgres, memcached, email sending) by yourself.
Example:
- docker run -d -e DATABASE_URL=xxx ... openproject/community:8 ./docker/web
- docker run -d -e DATABASE_URL=xxx ... openproject/community:8 ./docker/worker
-
-
-
+```bash
+docker run -d -e DATABASE_URL=xxx ... openproject/community:10 ./docker/web
+docker run -d -e DATABASE_URL=xxx ... openproject/community:10 ./docker/worker
+```
diff --git a/help/installation-and-operations/installation/docker/backup.md b/help/installation-and-operations/installation/docker/backup.md
deleted file mode 100644
index 94b64e7a940..00000000000
--- a/help/installation-and-operations/installation/docker/backup.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-sidebar_navigation:
- title: Backup guide
- priority: 100
----
-
-# Backup your OpenProject installation (Docker)
-
-Note: this guide only applies if you've installed OpenProject with our Docker image.
-
-If you've followed the steps described in the installation guide for Docker,
-then you just need to make a backup of the exported volumes, at your
-convenience. As a reminder, here is the recommended way to launch OpenProject
-with Docker:
-
- sudo mkdir -p /var/lib/openproject/{pgdata,logs,static}
-
- docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
- -v /var/lib/openproject/pgdata:/var/lib/postgresql/9.6/main \
- -v /var/lib/openproject/logs:/var/log/supervisor \
- -v /var/lib/openproject/static:/var/db/openproject \
- openproject/community:8
-
-If you're using the same local directories than the above command, then you
-just need to backup your local `/var/lib/openproject` folder (for instance to
-S3 or FTP).
-
-If at any point you want to restore from a backup, just put your backup in
-`/var/lib/openproject` on your local host, and re-launch the docker container.
diff --git a/help/installation-and-operations/installation/docker/upgrading.md b/help/installation-and-operations/installation/docker/upgrading.md
deleted file mode 100644
index c4a1540a457..00000000000
--- a/help/installation-and-operations/installation/docker/upgrading.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-sidebar_navigation:
- title: Upgrade guide
- priority: 200
----
-
-# Upgrade your OpenProject installation (Docker)
-
-Upgrading a Docker container is easy. First, pull the latest version of the image:
-
- docker pull openproject/community:latest
-
-Then stop and remove your existing container:
-
- docker stop openproject
- docker rm openproject
-
-Finally, re-launch the container in the same way you launched it previously.
-This time, it will use the new image:
-
- docker run -d ... openproject/community:latest
-
-
-# Upgrade Notes
-
-## OpenProject 9.x
-
-### MySQL is being deprecated
-
-OpenProject 9.0 is deprecating MySQL support. You can expect full MySQL support for the course of 9.0 releases, but we
-are likely going to be dropping MySQL completely in one of the following releases.
-
-For more information regarding motivation behind this and migration steps, please see https://www.openproject.org/deprecating-mysql-support/
-In this post, you will find documentation for a mostly-automated migration script to PostgreSQL to help you get up and running with PostgreSQL.
diff --git a/help/installation-and-operations/installation/packaged.md b/help/installation-and-operations/installation/packaged.md
index 89a36191f9c..ddcc1778ae3 100644
--- a/help/installation-and-operations/installation/packaged.md
+++ b/help/installation-and-operations/installation/packaged.md
@@ -190,7 +190,7 @@ After you have successfully installed the OpenProject package, you can now perfo
To start the configuration wizard, please run the following command with `sudo`, or as root:
-```
+```bash
sudo openproject configure
```
@@ -226,7 +226,7 @@ The wizard will not try to connect to any database. You will have to specify a d
You can set this `DATABASE_URL` parameter yourself to a PostgreSQL database URL.
-```
+```bash
sudo openproject config:set DATABASE_URL="postgresql://[user[:password]@][host][:port][/dbname][?param1=value1&...]
```
@@ -244,15 +244,7 @@ The available options are:
We recommend that you let OpenProject install and configure the outer web server, in which case we will install an Apache2 web server with a VirtualHost listening to the domain name you specify, optionally providing SSL/TLS termination.
-### **Skip** (not recommended)
-
-The installer will not set up an external web server for accessing. You will need to either install and set up a web server such as Apache2 or Nginx to function as the web server forwarding to our internal server listeing at `localhost:6000` by proxying.
-
-Only choose this option if you have a local Apache2 installed that the OpenProject package may not control, or need to use a different web server such as Nginx. Please note that not all functionality (especially regarding Repositories) are supported on Nginx.
-
-When installing with an existing Apache2, you can use our [installation wizard templates](https://github.com/pkgr/addon-apache2/tree/master/conf) for guidance on how to set up the integration. [For a minimal nginx config, please see this gist](https://gist.github.com/seLain/375d16ccd4542e3727e97a7478187d3a) as as starting point.
-
-In case you select to auto-install Apache2, multiple dialogs will request the parameters for setting it up.
+In case you select to auto-install Apache2, multiple dialogs will request the parameters for setting it up:
**Domain name**
@@ -278,6 +270,15 @@ In that case, you will be shown three additional dialogs to enter the certificat
![02d-ssl](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/02d-ssl.png?raw=true)
+
+### **Skip** (not recommended)
+
+The installer will not set up an external web server for accessing. You will need to either install and set up a web server such as Apache2 or Nginx to function as the web server forwarding to our internal server listeing at `localhost:6000` by proxying.
+
+Only choose this option if you have a local Apache2 installed that the OpenProject package may not control, or need to use a different web server such as Nginx. Please note that not all functionality (especially regarding Repositories) are supported on Nginx.
+
+When installing with an existing Apache2, you can use our [installation wizard templates](https://github.com/pkgr/addon-apache2/tree/master/conf) for guidance on how to set up the integration. [For a minimal nginx config, please see this gist](https://gist.github.com/seLain/375d16ccd4542e3727e97a7478187d3a) as as starting point.
+
## Step 3: SVN/Git integration server
If you have selected to auto-install an Apache2 web server, you will be asked whether you want to install Git and Subversion repository support. In case you do not need it or when in doubt, choose **Skip** for both options.
diff --git a/help/installation-and-operations/misc/README.md b/help/installation-and-operations/misc/README.md
index f2d1eaa196a..cb275ee6a4a 100644
--- a/help/installation-and-operations/misc/README.md
+++ b/help/installation-and-operations/misc/README.md
@@ -6,4 +6,7 @@ sidebar_navigation:
# Guides for infrequent operations
-TODO
+| ----------- |
+| [Migrating packaged-based installation from MySQL to PostgreSQL](./packaged-postgresql-migration) |
+| [Migrating docker-based installation from MySQL to PostgreSQL](./docker-postgresql-migration) |
+| [Migrating your OpenProject installation to another server](./migration) |
diff --git a/help/installation-and-operations/misc/docker-postgresql-migration.md b/help/installation-and-operations/misc/docker-postgresql-migration.md
index b4017f18648..6214372b515 100644
--- a/help/installation-and-operations/misc/docker-postgresql-migration.md
+++ b/help/installation-and-operations/misc/docker-postgresql-migration.md
@@ -1,5 +1,7 @@
# Migrating your Docker OpenProject database to PostgreSQL
+TODO: review
+
This guide will migrate your docker-based MySQL installation to a PostgreSQL installation using [pgloader](https://github.com/dimitri/pgloader).
## Backing up
diff --git a/help/installation-and-operations/misc/migration.md b/help/installation-and-operations/misc/migration.md
index 19d198a64d9..d869b2013a9 100644
--- a/help/installation-and-operations/misc/migration.md
+++ b/help/installation-and-operations/misc/migration.md
@@ -1,5 +1,7 @@
# Migrating your packaged OpenProject installation to another environment
+TODO: review
+
**Note:** this guide only applies if you've installed OpenProject using our DEB/RPM packages.
Migrating your OpenProject packaged installation to another host or environment is trivial and may be combined with, e.g., minor or major package upgrades due to our migration system.
diff --git a/help/installation-and-operations/misc/packaged-postgresql-migration.md b/help/installation-and-operations/misc/packaged-postgresql-migration.md
index 98498350869..92ac89cdbfa 100644
--- a/help/installation-and-operations/misc/packaged-postgresql-migration.md
+++ b/help/installation-and-operations/misc/packaged-postgresql-migration.md
@@ -1,5 +1,7 @@
# Migrating your packaged OpenProject database to PostgreSQL
+TODO: review
+
**Note:** this guide only applies if you've installed OpenProject using our DEB/RPM packages.
This guide will migrate your packaged MySQL installation to a PostgreSQL installation using [pgloader](https://github.com/dimitri/pgloader).
diff --git a/help/installation-and-operations/operation/README.md b/help/installation-and-operations/operation/README.md
index 57f3fe3c909..f9c1d333331 100644
--- a/help/installation-and-operations/operation/README.md
+++ b/help/installation-and-operations/operation/README.md
@@ -6,4 +6,15 @@ sidebar_navigation:
# Operating OpenProject
-TODO
+| ----------- | :---------- |
+| [(Re)Configuring](./reconfiguring) | How to (re)configure your OpenProject installation |
+| [Backing up](./backing-up) | How to backup your OpenProject data |
+| [Restoring](./restoring) | How to restore from a backup |
+| [Upgrading](./upgrading) | How to upgrade your OpenProject installation |
+| [Monitoring & Logs](./monitoring) | How to monitor your OpenProject installation (logs, health checks) |
+| [Process control](./control) | How to start/stop/restart, execute processes in your OpenProject installation |
+| [FAQ](./faq) | Frequently asked questions |
+<!--
+| [Troubleshooting](./troubleshooting) | How to troubleshoot your OpenProject installation |
+| [Scaling up/down](./scaling) | How to scale your OpenProject installation |
+-->
diff --git a/help/installation-and-operations/operation/backing-up.md b/help/installation-and-operations/operation/backing-up.md
index 7535a397d40..edd6658cb60 100644
--- a/help/installation-and-operations/operation/backing-up.md
+++ b/help/installation-and-operations/operation/backing-up.md
@@ -1,7 +1,7 @@
---
sidebar_navigation:
title: Backing up
- priority: 600
+ priority: 9
---
# Backing up your OpenProject installation
@@ -15,13 +15,13 @@ In general the following parts of your OpenProject installation should be backed
- Data stored in the database
- Configuration files
- Uploaded files (attachments)
-- Repositories (typically subversion) if applicable
+- Repositories (subversion, git) if applicable
-## Packaged installation (DEB/RPM)
+## Package-based installation (DEB/RPM)
-The DEB/RPM packages provide a backup tool which can be used to take a snaphsot
+The DEB/RPM packages provide a backup tool which can be used to take a snapshot
of the current OpenProject installation. This tool will create a backup of
-all parts mentioned above. The backup tool is used by executing the following
+all parts mentioned above. The backup tool is invoked by executing the following
command:
```bash
@@ -49,3 +49,26 @@ drwxr-xr-x 6 openproject openproject 4096 Nov 19 21:00 ..
```
You should then copy those dump files to a secure location, for instance an S3 bucket or some sort of backup server.
+
+## Docker-based installation
+
+TODO: review
+
+If you've followed the steps described in the [installation guide for Docker](../installation/docker),
+then you just need to make a backup of the exported volumes, at your
+convenience. As a reminder, here is the recommended way to launch OpenProject
+with Docker:
+
+```bash
+sudo mkdir -p /var/lib/openproject/{pgdata,logs,static}
+
+docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
+ -v /var/lib/openproject/pgdata:/var/lib/postgresql/9.6/main \
+ -v /var/lib/openproject/logs:/var/log/supervisor \
+ -v /var/lib/openproject/static:/var/db/openproject \
+ openproject/community:10
+```
+
+If you're using the same local directories than the above command, then you
+just need to backup your local `/var/lib/openproject` folder (for instance to
+S3 or FTP).
diff --git a/help/installation-and-operations/operation/control.md b/help/installation-and-operations/operation/control.md
new file mode 100644
index 00000000000..f7f4e0edcfe
--- /dev/null
+++ b/help/installation-and-operations/operation/control.md
@@ -0,0 +1,65 @@
+---
+sidebar_navigation:
+ title: Process control
+ priority: 5
+---
+
+# Process control for your OpenProject installation
+
+Note: this guide is specific to the package-based installation.
+
+## Restart all the OpenProject processes
+
+```bash
+sudo openproject restart
+```
+
+## Run commands like rake tasks or rails console
+
+The OpenProject command line tool supports running rake tasks and known scripts. For instance:
+
+Get the current version of OpenProject
+
+```bash
+sudo openproject run bundle exec rake version
+```
+
+Launch an interactive console to directly interact with the underlying Ruby on Rails application:
+
+```bash
+sudo openproject run console
+```
+
+Manually launch the database migrations:
+
+```bash
+sudo openproject run rake db:migrate
+```
+
+Check the version of Ruby used by OpenProject:
+
+```bash
+sudo openproject run ruby -v
+```
+
+## Scaling the number of web workers
+
+TODO: review
+
+Note: Depending on your free RAM on your system, we recommend you raise the default number of web processes. The default from 9.0.3 onwards is 4 web processes. Each worker will take roughly 300-400MB RAM.
+
+We recommend at least 4 web processes. Please check your current web processes count with:
+
+```bash
+sudo openproject config:get OPENPROJECT_WEB_WORKERS
+```
+
+If it returns nothing, the default process count of `4` applies. To increase or decrease the process count, call
+
+```bash
+sudo openproject config:set OPENPROJECT_WEB_WORKERS=number
+```
+
+Where `number` is a positive number between 1 and `round(AVAILABLE_RAM * 1.5)`.
+
+After changing these values, call `sudo openproject configure` to apply it to the web server.
diff --git a/help/installation-and-operations/operation/stuff-to-move.md b/help/installation-and-operations/operation/faq.md
similarity index 65%
rename from help/installation-and-operations/operation/stuff-to-move.md
rename to help/installation-and-operations/operation/faq.md
index 92032fba9ef..050133c1e35 100644
--- a/help/installation-and-operations/operation/stuff-to-move.md
+++ b/help/installation-and-operations/operation/faq.md
@@ -1,112 +1,14 @@
-## Managing your OpenProject installation
-
-The openproject package comes with a command line tool to help manage the
-application. To see all possible command options of this tool you can run:
-
- admin@openproject-demo:~# sudo openproject
- Usage:
- openproject run COMMAND [options]
- openproject scale PROCESS=NUM
- openproject logs [--tail|-n NUMBER]
- openproject config:get VAR
- openproject config:set VAR=VALUE
- openproject config:unset VAR
- openproject reconfigure
- openproject restart [PROCESS]
-
-In the rest of this section we'll go over some of the most important commands.
-
-#### Run commands like rake tasks or rails console
-
-The openproject command line tool supports running rake tasks and known scripts
-like the rails console:
-
- # Get the current version of OpenProject
- sudo openproject run bundle exec rake version
- # Or spawn an interactive console
- sudo openproject run console
- # or a rake task
- sudo openproject run rake db:migrate
- # or check the version of ruby used by openproject
- sudo openproject run ruby -v
-
-#### Show logs
-
-The command line tool can also be used to see the log information. The most
-typically use case is to show/follow all current log entries. This can be
-accomplished using the the `–tail` flag. See example below:
-
- sudo openproject logs --tail
-
-Note:
-
-* On distributions that are based on systemd, all the logs are sent to journald, so you can also display them via `journalctl`.
-* On older distributions that use either sysvinit or upstart, all the logs are stored in `/var/log/openproject/`.
-
-#### Scaling the number of web workers
-
-Depending on your free RAM on your system, we recommend you raise the default number of workers. The default from 9.0.3 onwards is four worker processes. Each worker will take roughly 300-400MB RAM.
-
-We recommend at least four workers. Please check your current worker count with
-
-```bash
- sudo openproject config:get OPENPROJECT_WEB_WORKERS
-```
-
-If it returns nothing, the default worker count of `4` applies. To increase or decrease the worker count, call
-
-```bash
- sudo openproject config:set OPENPROJECT_WEB_WORKERS=number
-```
-
-Where `number` is a positive number between 1 and `round(AVAILABLE_RAM * 1.5)`.
-
-After changing these values, call `sudo openproject configure` to apply it to the web server.
-
-#### Reconfigure the application
-
-At any point in time, you can reconfigure the whole application by re-running the installer with the following command:
-
- sudo openproject reconfigure
-
-The command above will bring up the installation wizard again. Please be aware that it will start the configuration/installation process from scratch. You can choose to modify existing entries, or just leave them as they are if you want to reuse them (note that passwords will appear as "blank" entries in their
-respective input fields, but you don't need to enter them again if don't want to modify them).
-
-#### Upgrading the application
-
-As openproject is a system package, it will be automatically updated when you install your package updates.
-
-After you have just updated your OpenProject version, you should run `openproject configure` (see section below), which would automatically reuse your previous configuration, and only asks for your input if new configuration options are available.
-
-For a complete guide on upgrading your OpenProject packaged installation, [please see this guide](upgrading).
-
-#### Inspect the existing configuration
-
-You can list all of the environment variables accessible to the application by running:
-
- sudo openproject config
- # this will return something like:
- DATABASE_URL=mysql2://openproject:[email protected]:3306/openproject
- SECRET_TOKEN=c5aa99a90f9650404a885cf5ec7c28f7fe1379550bb811cb0b39058f9407eaa216b9b2b22d27f58fb15ac21adb3bd16494ebe89e39ec225ef4627db048a12530
- EMAIL_DELIVERY_METHOD=smtp
- SMTP_DOMAIN=example.com
- SMTP_HOST=smtp.example.com
- SMTP_PASSWORD=mail
- SMTP_PORT=25
- SMTP_URL=smtp://mail:[email protected]:25/example.com
- SMTP_USERNAME=mail
- SMTP_ENABLE_STARTTLS_AUTO=true
- SMTP_AUTHENTICATION=plain
- WEB_CONCURRENCY=4
- WEB_TIMEOUT=15
- RAILS_CACHE_STORE=memcache
- SESSION_STORE=cache_store
-
+---
+sidebar_navigation:
+ title: FAQ
+ priority: 4
+---
# Frequently asked questions - FAQ
+TODO: review
+
## How can I install an OpenProject plugin?
Our [official installation page][install-page] has instructions on how to customize your OpenProject installation.
@@ -114,8 +16,6 @@ Please note that customization is not yet supported for Docker-based installatio
[install-page]: https://www.openproject.org/download-and-installation/
-
-
## How to migrate from Bitnami to the official OpenProject installation packages?
Please follow the following steps:
diff --git a/help/installation-and-operations/operation/monitoring.md b/help/installation-and-operations/operation/monitoring.md
new file mode 100644
index 00000000000..a11104423eb
--- /dev/null
+++ b/help/installation-and-operations/operation/monitoring.md
@@ -0,0 +1,23 @@
+---
+sidebar_navigation:
+ title: Monitoring & Logs
+ priority: 6
+---
+
+# Monitoring your OpenProject installation
+
+## Show logs
+
+In a package-based installation, the `openproject` command line tool can be
+used to see the log information. The most typically use case is to show/follow
+all current log entries. This can be accomplished using the the `–tail` flag.
+See example below:
+
+```bash
+sudo openproject logs --tail
+```
+
+Note:
+
+* On distributions that are based on systemd, all the logs are sent to journald, so you can also display them via `journalctl`.
+* On older distributions that use either sysvinit or upstart, all the logs are stored in `/var/log/openproject/`.
diff --git a/help/installation-and-operations/operation/reconfiguring.md b/help/installation-and-operations/operation/reconfiguring.md
index c34b90b7be0..e17cb5f616b 100644
--- a/help/installation-and-operations/operation/reconfiguring.md
+++ b/help/installation-and-operations/operation/reconfiguring.md
@@ -1,25 +1,33 @@
---
sidebar_navigation:
title: (Re)configuring
- priority: 800
+ priority: 10
---
# (Re)configuring OpenProject
## Packaged installation
-For packaged installations, you can restart the cofniguration process by issuing the following command on the server where OpenProject runs:
+For packaged installations, you can restart the configuration process by issuing the following command on the server where OpenProject runs:
-```
+```bash
sudo openproject reconfigure
```
-This will restart the installation wizard, and allow you to modify any of the choices that you previously selected. If a configuration options doesn't need to be modified, just hit `ENTER` to proceed to the next screen.
+This will restart the installation wizard, and allow you to modify any of the choices that you previously selected. If a configuration option doesn't need to be modified, just hit `ENTER` to proceed to the next screen.
+
+The wizard configuration is stored in `/etc/openproject/installer.dat`.
+
+The wizard will automatically set environment variables to be used by OpenProject. Those variables can be manipulated with the CLI tool that ships with OpenProject:
+
+* `sudo openproject config` will display the list of environment variables set.
+* `sudo openproject config:get KEY` allows you to get the value of single environment variable.
+* `sudo openproject config:set KEY VALUE` allows you to set a new value for a single environment variable.
## Docker installation
For docker-based installations, you should update the environment file passed to the `--env-file` docker option, and issue the following command:
-```
+```bash
docker restart openproject
```
diff --git a/help/installation-and-operations/operation/restoring.md b/help/installation-and-operations/operation/restoring.md
index 2b301614761..e33dcb5af9f 100644
--- a/help/installation-and-operations/operation/restoring.md
+++ b/help/installation-and-operations/operation/restoring.md
@@ -1,14 +1,14 @@
---
sidebar_navigation:
title: Restoring
- priority: 500
+ priority: 8
---
# Restoring an OpenProject backup
-## Packaged installation (DEB/RPM)
+## Package-based installation (DEB/RPM)
-Assuming you have a backup of all the OpenProject files at hand (see the [Backing up](../backing-up) guide), here is how you would restore your OpenProject installation from that backup.
+Assuming you have a backup of all the OpenProject files at hand (see the [Backing up](./backing-up) guide), here is how you would restore your OpenProject installation from that backup.
As a reference, we will assume you have the following dumps on your server, located in `/var/db/openproject/backup`:
@@ -74,7 +74,7 @@ openproject config:get DATABASE_URL
Then, to restore the PostgreSQL dump please use the `pg_restore` command utility:
-```
+```bash
pg_restore -h <dbhost> -p <dbport> -U <dbusername> -d <dbname> postgresql-dump-20191119210038.pgdump
```
@@ -91,6 +91,22 @@ $ pg_restore -h 127.0.0.1 -p 45432 -U openproject -d openproject postgresql-dump
Finally, restart all your processes as follows:
-```
+```bash
sudo service openproject restart
```
+
+## Docker-based installation
+
+Assuming you have a backup as per the procedure described in the [Backing up](./backing-up) guide, if at any point you want to restore from a backup, just put your backup back in `/var/lib/openproject` on your local host, and re-launch the docker container with the recommended options.
+
+For instance, assuming your backup was stored on S3:
+
+```bash
+aws s3 cp --recursive s3://my-backup-bucket/openproject-backups/ /var/lib/openproject/
+
+docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
+ -v /var/lib/openproject/pgdata:/var/lib/postgresql/9.6/main \
+ -v /var/lib/openproject/logs:/var/log/supervisor \
+ -v /var/lib/openproject/static:/var/db/openproject \
+ openproject/community:10
+```
diff --git a/help/installation-and-operations/installation/packaged/upgrading.md b/help/installation-and-operations/operation/upgrading.md
similarity index 70%
rename from help/installation-and-operations/installation/packaged/upgrading.md
rename to help/installation-and-operations/operation/upgrading.md
index 8829b8e2c9b..c5bc4123353 100644
--- a/help/installation-and-operations/installation/packaged/upgrading.md
+++ b/help/installation-and-operations/operation/upgrading.md
@@ -1,69 +1,82 @@
---
sidebar_navigation:
- title: Upgrade Guide
- priority: 100
+ title: Upgrading
+ priority: 7
---
-# Upgrading your packaged installation
+# Upgrading your OpenProject installation
-<div class="alert alert-info" role="alert">
-
-Note: this guide only applies if you've installed OpenProject using our DEB/RPM
-packages. [Please see the index](../) for guides on other installation methods.
+In the rest of this guide, we assume that you have taken the necessary steps to [backup](./backing-up) your OpenProject installation before upgrading.
-</div>
+## Package-based installation (DEB/RPM)
Upgrading OpenProject is as easy as installing a newer OpenProject package and
running the `openproject configure` command.
-## Backup
+<div class="alert alert-info" role="alert">
+Please note that the package-based installation uses different release channels for each MAJOR version of OpenProject. This means that if you want to switch from (e.g.) 9.x to 10.x, you will need to perform the steps described in the [installation section](../installation/packaged) to update your package sources to point to the newer release channel. The rest of this section is only applicable if you want to upgrade a (e.g.) 10.x version to a 10.y vesion.
+</div>
-We try to ensure your upgrade path is as smooth as possible. This means that the below update + configure step should be the only change needed to get up to date with our packaged installation.
+### Debian / Ubuntu
-In the event of an error during the migrations, you will still want to have a recent backup you can restore to before reaching out to us. This is especially important for MySQL installations, since it does not support transactional migrations with changes to the table schema and you will have to rollback these changes manually. For PostgreSQL, if the Rails migrations fail, all previous changes will be rolled back for you to try again, or to install the older packages.
+```bash
+sudo apt-get update
+sudo apt-get install --only-upgrade openproject
+sudo openproject configure
+```
-To perform a backup, run the following command
+### CentOS / RHEL
```bash
-sudo openproject run backup
+sudo yum update
+sudo yum install openproject
+sudo openproject configure
```
-This will store the current database dump, attachments and config to `/var/db/openproject/backup`. For more information on the backup and restore mechanisms, [check our detailed backup guide](https://www.openproject.org/operations/backup/backup-guide-packaged-installation/).
+### SuSE
+
+```bash
+sudo zypper update openproject
+sudo openproject configure
+```
-## Debian / Ubuntu
- sudo apt-get update
- sudo apt-get install --only-upgrade openproject
- sudo openproject configure
+<div class="alert alert-info" role="alert">
-## CentOS / RHEL
+Using `openproject configure`, the wizard will display new steps that weren't available yet or had not been configured in previous installations.
- sudo yum update
- sudo yum install openproject
- sudo openproject configure
+If you want to perform changes to your configuration or are unsure what steps are available, you can safely run `openproject reconfigure` to walk through the entire configuration process again.
-## SuSE
+Note that this still takes previous values into consideration. Values that should not change from your previous configurations can be skipped by pressing `<Return>`. This also applies for steps with passwords, which are shown as empty even though they may have a value. Skipping those steps equals to re-use the existing value.
- sudo zypper update openproject
- sudo openproject configure
+</div>
+## Docker-based installation
-## Re-configuring the application
+Upgrading a Docker container is easy. First, pull the latest version of the image:
-Using `openproject configure`, the wizard will display new steps that weren't available yet or had not been configured in previous installations.
-If you want to perform changes to your configuration or are unsure what steps are available, you can safely run `openproject reconfigure` to walk through the entire configuration process again.
+```bash
+docker pull openproject/community:VERSION
+# e.g. docker pull openproject/community:10
+```
-Note that this still takes previous values into consideration. Values that should not change from your previous configurations can be skipped by pressing `<Return>`. This also applies for steps with passwords, which are shown as empty even though they may have a value. Skipping those steps equals to re-use the existing value.
+Then stop and remove your existing container (we assume that you are running with the recommended production setup here):
+```bash
+docker stop openproject
+docker rm openproject
+```
-# Upgrading between major releases (DEB/RPM packages)
+Finally, re-launch the container in the same way you launched it previously.
+This time, it will use the new image:
-Since OpenProject 9.0.0 is a major upgrade, you will need to perform some basic manual steps to upgrade your package.
+```
+docker run -d ... openproject/community:VERSION
+```
-First, please check that the package repository is correct.
-Compare your local package repository with the one printed on your matching distribution on [our Download and Installation page](https://www.openproject.org/download-and-installation/)
+# Upgrade notes
-## Upgrade notes for OpenProject 9.0
+**TODO: review**
These following points are some known issues around the update to 9.0.
diff --git a/help/installation-and-operations/system-requirements.md b/help/installation-and-operations/system-requirements.md
index d2ad6a1fd86..6629d8a7f2a 100644
--- a/help/installation-and-operations/system-requirements.md
+++ b/help/installation-and-operations/system-requirements.md
@@ -15,19 +15,26 @@ provide any official support for them.
### Hardware
* __Memory:__ 4096 MB
-* __Free disc space:__ 2 GB
+* __Free disk space:__ 2 GB
### Operating system
-| Distribution (64 bits only) | Identifier | init system |
-| :------------------------------ | :----------- | :---------- |
-| CentOS/RHEL 7.x | centos-7 | systemd |
-| Debian 9 Stretch | debian-9 | systemd |
-| Suse Linux Enterprise Server 12 | sles-12 | sysvinit |
-| Ubuntu 16.04 Xenial Xerus | ubuntu-16.04 | upstart |
-| Ubuntu 18.04 Bionic Beaver | ubuntu-18.04 | systemd |
+The [package-based installation](../installation/packaged) requires one of the following Linux distributions:
-### Dependencies
+| Distribution (**64 bits only**) |
+| ------------------------------- |
+| CentOS/RHEL 7.x |
+| Debian 9 Stretch |
+| Debian 10 Stretch |
+| Suse Linux Enterprise Server 12 |
+| Ubuntu 16.04 Xenial Xerus |
+| Ubuntu 18.04 Bionic Beaver |
+
+The [docker-based installation](../installation/docker) requires a system with Docker installed. Please see the [official Docker page](https://docs.docker.com/install/) for the list of supported systems.
+
+### Overview of dependencies
+
+Both the package and docker based installations will install and setup the following dependencies that are required by OpenProject to run:
* __Runtime:__ [Ruby](https://www.ruby-lang.org/en/) Version = 2.6.x
* __Webserver:__ [Apache](http://httpd.apache.org/)
@@ -44,4 +51,4 @@ for some older browsers (e.g. IE 11).
* [Mozilla Firefox](https://www.mozilla.org/en-US/firefox/products/) (At least ESR version 60)
* [Microsoft Edge](https://www.microsoft.com/de-de/windows/microsoft-edge)
* [Google Chrome](https://www.google.com/chrome/browser/desktop/)
-* Apple Safari
+* [Apple Safari](https://www.apple.com/safari/)