From af9a0270f1647479ca510c94b7724ed7f1d0c34f Mon Sep 17 00:00:00 2001 From: YapWC <34093361+YapWC@users.noreply.github.com> Date: Mon, 28 Jul 2025 15:01:24 +0800 Subject: [PATCH 1/3] Update .env.example Added in missing env variable --- .env.example | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index d84511e8..96c4464e 100644 --- a/.env.example +++ b/.env.example @@ -9,11 +9,13 @@ TAG=15-slim OPENPROJECT_HTTPS=false OPENPROJECT_HOST__NAME=localhost -PORT=127.0.0.1:8080 +OPENPROJECT_HSTS=true +PORT=8080 OPENPROJECT_RAILS__RELATIVE__URL__ROOT= IMAP_ENABLED=false DATABASE_URL=postgres://postgres:p4ssw0rd@db/openproject?pool=20&encoding=unicode&reconnect=true RAILS_MIN_THREADS=4 RAILS_MAX_THREADS=16 PGDATA="/var/lib/postgresql/data" +POSTGRES_PASSWORD=p4ssw0rd OPDATA="/var/openproject/assets" From 028d0216f3694d90ce7f4f0b19596e96343a106f Mon Sep 17 00:00:00 2001 From: YapWC <34093361+YapWC@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:36:03 +0800 Subject: [PATCH 2/3] Update .env.example with Latest Tag --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 96c4464e..79d781e9 100644 --- a/.env.example +++ b/.env.example @@ -6,7 +6,7 @@ # Please refer to our documentation to see all possible variables: # https://www.openproject.org/docs/installation-and-operations/configuration/environment/ # -TAG=15-slim +TAG=16-slim OPENPROJECT_HTTPS=false OPENPROJECT_HOST__NAME=localhost OPENPROJECT_HSTS=true From 64b60eb9778a5c458cf642f16e0ca2d79f795a09 Mon Sep 17 00:00:00 2001 From: YapWC <34093361+YapWC@users.noreply.github.com> Date: Tue, 29 Jul 2025 10:32:04 +0800 Subject: [PATCH 3/3] Update .env.example DATABASE_URL DATABASE_PASS was parsed into DATABASE_URL. User might overlooked to change the password in DATABASE_URL. This whole .env configuration has been tested and fully functional with no conflict on docker-compose.yaml --- .env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 79d781e9..7c3e4039 100644 --- a/.env.example +++ b/.env.example @@ -13,9 +13,9 @@ OPENPROJECT_HSTS=true PORT=8080 OPENPROJECT_RAILS__RELATIVE__URL__ROOT= IMAP_ENABLED=false -DATABASE_URL=postgres://postgres:p4ssw0rd@db/openproject?pool=20&encoding=unicode&reconnect=true +POSTGRES_PASSWORD=p4ssw0rd +DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}/openproject?pool=20&encoding=unicode&reconnect=true RAILS_MIN_THREADS=4 RAILS_MAX_THREADS=16 PGDATA="/var/lib/postgresql/data" -POSTGRES_PASSWORD=p4ssw0rd OPDATA="/var/openproject/assets"