OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/docs/installation-and-operations/configuration/database
Oliver Günther 7f1c94a025
Merge remote-tracking branch 'origin/dev' into feature/improved-dockerfile-and-compose
5 years ago
..
README.md Merge remote-tracking branch 'origin/dev' into feature/improved-dockerfile-and-compose 5 years ago

README.md

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)

Docker-based installation

If you run the all-in-one container, you can simply pass a custom DATABASE_URL environment variable on the docker command-line, which could point to an external database.

Example:

docker run -d ... -e DATABASE_URL=mysql2://user:pass@host:port/dbname openproject/community:10

If you run the Compose based docker stack, you can simply override the DATABASE_URL environment variable, and remove the db service from the docker-compose.yml file. Then you can restart the stack with:

docker-compose down
docker-compose up -d

In both cases the seeder will be run when you (re)launch OpenProject to make sure that the database gets the migrations and demo data as well.