Initial connection to database error strange IP address

My version of HedgeDoc is: <please replace me>

What I expected to happen:

I expected that the application would start up based on the documentation, but instead it seems to be searching through a list of IP addresses and port numbers looking for a database and I do not know what the reference is for these 10.89* ip addresses.

What actually happened:
Podman startup Log, complete with Postgres 18 error?
podman-compose up
hedgedoc_database_1
hedgedoc_app_1
hedgedoc_app_1
hedgedoc_database_1
508954a81f67b2c797c3e287789bf195239cc7cfb1e2aeaa7885f968922b8266
hedgedoc_default
e6d7f5277fe976fc690f9a9b0b13b4e306a2cb5488563570d5aba96b64a1fb67
5205330add3528e455f5240398f0a66c93f1b32a30d5f6c11357052abdc886d6
9a34c5c7928ef45cd154c4aa2cba566ffdb6b4bf47e27562a59048845fea8653
[database] | Error: in 18+, these Docker images are configured to store database data in a
[database] | format which is compatible with “pg_ctlcluster” (specifically, using
[database] | major-version-specific directory names). This better reflects how
[database] | PostgreSQL itself works, and how upgrades are to be performed.
[database] |
[database] | See also Change `PGDATA` in 18+ to `/var/lib/postgresql/MAJOR/docker` by tianon · Pull Request #1259 · docker-library/postgres · GitHub
[database] |
[database] | Counter to that, there appears to be PostgreSQL data in:
[database] | /var/lib/postgresql/data (unused mount/volume)
[database] |
[database] | This is usually the result of upgrading the Docker image without
[database] | upgrading the underlying database using “pg_upgrade” (which requires both
[database] | versions).
[database] |
[database] | The suggested container configuration for 18+ is to place a single mount
[database] | at /var/lib/postgresql which will then place PostgreSQL data in a
[database] | subdirectory, allowing usage of “pg_upgrade --link” without mount point
[database] | boundary issues.
[database] |
[database] | See Upgrading between major versions? · Issue #37 · docker-library/postgres · GitHub for a (long)
[database] | discussion around this process, and suggestions for how to do so.
[app] | 2025-11-05T11:38:29.821Z warn: Session secret not set. Using random generated one. Please set sessionSecret in your config.json file. All users will be logged out.
[app] | 2025-11-05T11:38:30.679Z warn: Database cannot be reached. Try 1 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:31.681Z warn: Database cannot be reached. Try 2 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.12:5432)
[app] | 2025-11-05T11:38:32.683Z warn: Database cannot be reached. Try 3 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.14:5432)
[app] | 2025-11-05T11:38:33.703Z warn: Database cannot be reached. Try 4 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:34.705Z warn: Database cannot be reached. Try 5 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.17:5432)
[app] | 2025-11-05T11:38:35.706Z warn: Database cannot be reached. Try 6 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.19:5432)
[app] | 2025-11-05T11:38:36.707Z warn: Database cannot be reached. Try 7 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.20:5432)
[app] | 2025-11-05T11:38:37.708Z warn: Database cannot be reached. Try 8 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.22:5432)
[app] | 2025-11-05T11:38:38.742Z warn: Database cannot be reached. Try 9 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:39.744Z warn: Database cannot be reached. Try 10 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.25:5432)
[app] | 2025-11-05T11:38:40.763Z warn: Database cannot be reached. Try 11 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:41.765Z warn: Database cannot be reached. Try 12 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.28:5432)
[app] | 2025-11-05T11:38:42.787Z warn: Database cannot be reached. Try 13 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:43.789Z warn: Database cannot be reached. Try 14 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.31:5432)
[app] | 2025-11-05T11:38:44.791Z warn: Database cannot be reached. Try 15 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.33:5432)
[app] | 2025-11-05T11:38:45.823Z warn: Database cannot be reached. Try 16 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:46.824Z warn: Database cannot be reached. Try 17 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.36:5432)
[app] | 2025-11-05T11:38:47.856Z warn: Database cannot be reached. Try 18 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:48.858Z warn: Database cannot be reached. Try 19 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.39:5432)
[app] | 2025-11-05T11:38:49.859Z warn: Database cannot be reached. Try 20 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.41:5432)
[app] | 2025-11-05T11:38:50.861Z warn: Database cannot be reached. Try 21 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.42:5432)
[app] | 2025-11-05T11:38:51.895Z warn: Database cannot be reached. Try 22 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:52.896Z warn: Database cannot be reached. Try 23 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.45:5432)
[app] | 2025-11-05T11:38:53.897Z warn: Database cannot be reached. Try 24 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.47:5432)
[app] | 2025-11-05T11:38:54.899Z warn: Database cannot be reached. Try 25 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.48:5432)
[app] | 2025-11-05T11:38:55.919Z warn: Database cannot be reached. Try 26 of 30. (SequelizeHostNotFoundError: getaddrinfo ENOTFOUND database)
[app] | 2025-11-05T11:38:56.921Z warn: Database cannot be reached. Try 27 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.51:5432)
[app] | 2025-11-05T11:38:57.922Z warn: Database cannot be reached. Try 28 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.52:5432)
[app] | 2025-11-05T11:38:58.925Z warn: Database cannot be reached. Try 29 of 30. (SequelizeConnectionRefusedError: connect ECONNREFUSED 10.89.0.54:5432)
[app] | 2025-11-05T11:38:59.927Z error: Cannot reach database! Exiting.

My docker-compose.yml file

version: ‘3’
services:
database:
image: Docker Hub Container Image Library | App Containerization
environment:
- PUID=1000
- PGID=1000
- DB_HOST=localhost
- DB_PORT=5432
- DB_USER=hedgedoc
- POSTGRES_PORT=5432
- POSTGRES_USER=hedgedoc
- POSTGRES_PASSWORD=password
- POSTGRES_DB=hedgedoc
volumes:
- database:/var/lib/postgresql/data
ports:
- “5432:5432”
restart: always
app:
# Make sure to use the latest release from https://hedgedoc.org/latest-release
image: Quay
environment:
- PUID=1000
- PGID=1000
- CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc
- CMD_DOMAIN=172.20.123.143
- CMD_URL_ADDPORT=true
volumes:
- uploads:/hedgedoc/public/uploads
ports:
- “3000:3000”
restart: always
depends_on:
- database
volumes:
database:
uploads:

This has been resolved. I will post updates later but it was a misunderstanding of some of the options as well as an issue with having /usr/postgresql/data as the folder. There should not have been a …/data folder.