Skip to content

Commit 0a88b35

Browse files
Merge pull request fossology#3187 from krrish175-byte/feat/issue-3152
docs(db): clarify PostgreSQL volume mount usage in Docker reviewed-by: shaheem.azmal@siemens.com, kaushlendra-pratap.singh@siemens.com
2 parents 68594e5 + e5cb1d5 commit 0a88b35

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ The FOSSology web service allows you to configure its database connection using
7474
- **FOSSOLOGY_DB_PASSWORD:** Password to be used for PostgreSQL connection. Defaults to `fossy`.
7575

7676
You can change them if you want to use a different database server or credentials.
77+
78+
### Notes on PostgreSQL volume mounts (Docker)
79+
80+
When running FOSSology using Docker, the PostgreSQL data directory should follow the mount path recommended by the official Postgres container documentation:
81+
82+
https://hub.docker.com/_/postgres
83+
84+
Avoid using version-specific internal paths such as:
85+
86+
```
87+
/var/lib/postgresql/16/data
88+
```
89+
90+
These directories may not be persisted as expected when containers are recreated. Always reply on the directory structure defined by the Postgres image.
7791

7892
## Vagrant
7993

0 commit comments

Comments
 (0)