URI malformed; error while trying to create docker container

My version of HedgeDoc is: latest

What I expected to happen:

Trying to run hedgedoc as docker container. Using docker compose up to start/ build container. Should start up service and run normally.

What actually happened:
After some time the service throws an error: uncaughtException: URI malformed. Full error:

app-1 | 2025-03-30T12:27:40.022Z warn: Session secret not set. Using random generated one. Please set sessionSecret in your config.json file. All users will be logged out.
app-1 | 2025-03-30T12:27:40.055Z error: uncaughtException: URI malformed
app-1 | URIError: URI malformed
app-1 | at decodeURIComponent ()
app-1 | at Url.parse (node:url:358:19)
app-1 | at Object.urlParse [as parse] (node:url:142:13)
app-1 | at new Sequelize (/hedgedoc/node_modules/sequelize/lib/sequelize.js:187:28)
app-1 | at Object. (/hedgedoc/lib/models/index.js:25:15)
app-1 | at Module._compile (node:internal/modules/cjs/loader:1469:14)
app-1 | at Module._extensions…js (node:internal/modules/cjs/loader:1548:10)
app-1 | at Module.load (node:internal/modules/cjs/loader:1288:32)
app-1 | at Module._load (node:internal/modules/cjs/loader:1104:12)
app-1 | at Module.require (node:internal/modules/cjs/loader:1311:19)
app-1 | at require (node:internal/modules/helpers:179:18)
app-1 | at Object. (/hedgedoc/app.js:27:16)
app-1 | at Module._compile (node:internal/modules/cjs/loader:1469:14)
app-1 | at Module._extensions…js (node:internal/modules/cjs/loader:1548:10)
app-1 | at Module.load (node:internal/modules/cjs/loader:1288:32)
app-1 | at Module._load (node:internal/modules/cjs/loader:1104:12)
app-1 | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12)
app-1 | at node:internal/main/run_main_module:28:49
app-1 exited with code 0

I already tried:
I tried to google the error, but there was really scarce things about it, nothing that helped. It could be some problem with the docker-compose.yml file, but I know too little about docker to find out the concrete problem.

Hi @Thiex and welcome to the HedgeDoc community!

It seems the database config URL you provided is invalid. Could you check the value of your CMD_DB_URL variable?

The variable uses the following schema:
<databasetype>://<username>:<password>@<hostname>:<port>/<database>

For example it could look like this:
mysql://hedgedoc:password@database:3306/hedgedoc