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

Configure local postgresql if database_url is empty

Oliver Güntherd938463fd5f1
diff --git a/docker/prod/supervisord b/docker/prod/supervisord
index 3f6c3ee6b4b..6d5cc800d3b 100755
--- a/docker/prod/supervisord
+++ b/docker/prod/supervisord
@@ -103,7 +103,7 @@ configure_local_postgres() {
echo "data_directory='$PGDATA'" >> "$PGCONF_FILE"
}
-if [ "$dbhost" = "127.0.0.1" ]; then
+if [ -z "${DATABASE_URL}" ] || [ "$dbhost" = "127.0.0.1" ]; then
configure_local_postgres
# initialize cluster if it does not exist yet