I'm having an issue with my Immich setup deployed using Docker Compose.
The directory used for the PostgreSQL database remains completely empty, and every time I restart the Immich stack, it resets as if it were a fresh installation. No data is being persisted.
Details: - The PostgreSQL container starts without any visible errors. - The database volume is mounted like this:
(runned as root) The db-data folder on the host stays empty even after the container starts:
ls db-data/data/
ls db-data/data/
→ empty
→ empty
Immich runs, but no data persists across restarts.
Do you know why PostgreSQL might not be writing any data into the directory? Is there a specific directory required by this Immich PostgreSQL image, or any known issue related to mounting /var/lib/postgresql/?