Docker settings
These settings are optional. To start dbCove, refer to Install with Docker.
Change a setting
| Setting | dbCove with embedded PostgreSQL | dbCove with your PostgreSQL or Oracle |
|---|---|---|
The first password of admin, at least 8 characters | DBCOVE_PASSWORD | -e DBCOVE_ADMIN_PASSWORD='<password>' |
| The HTTPS port of the host | DBCOVE_PORT | -p 8443:5138 |
| The time zone | DBCOVE_TZ | -e TZ=Europe/Berlin |
| A specific version | oci://dbcove/compose:<version> | dbcove/dbcove:<version> |
| The port, the database or the schema of your repository | -e DBCOVE_REPOSITORY_PORT, -e DBCOVE_REPOSITORY_DATABASE, -e DBCOVE_REPOSITORY_SCHEMA |
With embedded PostgreSQL, put the variable before the command, each time you run it. Linux or macOS:
DBCOVE_PORT=8443 DBCOVE_TZ=Europe/Berlin docker compose -f oci://dbcove/compose up -d --wait -y
Windows (PowerShell):
$env:DBCOVE_PORT='8443'; $env:DBCOVE_TZ='Europe/Berlin'; docker compose -f oci://dbcove/compose up -d --wait -y
With your PostgreSQL or Oracle, run docker rm -f dbcove-app. Then run the docker run command again with the new option. The data stays in the dbcove-data volume.
Reports, maintenance windows and the start of each day use the time zone. Set the same time zone on the server of the repository. The default is Etc/UTC.
Other settings
The other settings of this page have a name and a value, for example Server__HttpBind and Any.
- With your PostgreSQL or Oracle, add
-e <name>=<value>to thedocker runcommand. - With embedded PostgreSQL, save
docker.yamlascompose.yamlin an empty folder. Write the setting belowenvironment:of thedbcoveservice and rundocker compose up -din that folder. To upgrade, change the tag of the image in your file and rundocker compose up -dagain.
Docker Compose older than 2.34 cannot read oci://. Use the saved file with it too.
Use plain HTTP
dbCove uses HTTPS. You can open plain HTTP also, on a different port.
With plain HTTP, the passwords go through the network as clear text. Use plain HTTP only in a network that you trust.
dbCove with your PostgreSQL or Oracle
Add these options to the docker run command. Then open http://localhost:8080/.
-p 8080:5137 -e Server__HttpBind=Any
dbCove with embedded PostgreSQL
Save
docker.yamlascompose.yamlin an empty folder.In the
dbcoveservice, add one line belowports:and one line belowenvironment:.ports: - "8080:5137" environment: Server__HttpBind: AnyRun
docker compose up -din that folder. Then openhttp://localhost:8080/.
Use your own certificate
Mount the
.pfxfile into the container, for example-v /etc/dbcove/dbcove.pfx:/certs/dbcove.pfx:ro.Set
Server__Certificate__Pathto the path of the file in the container.Set
Server__Certificate__Passwordto the password of the file.Start dbCove again. See Change a setting.
dbCove uses your certificate. Without one, dbCove makes its own certificate for the name dbcove. To add more names to that certificate, set Server__Certificate__ExtraNames, for example "dbcove.example.com;10.0.0.5".
Trust the certificate authorities of your company
Do this when your LDAP server (LDAPS), your mail server or a database uses a certificate from a certificate authority of your company.
Copy the certificates of the authorities into the folder
ca-certificatesof thedbcove-datavolume. Use PEM or DER files (.crt,.pemor.cer), for example:docker cp company-ca.crt dbcove-app:/var/lib/dbcove/ca-certificates/Run
docker restart dbcove-app.
The log shows Company certificate authorities: 1 added. dbCove trusts these authorities and the public authorities of the image. To stop trusting an authority, remove its file and restart.
Run behind a reverse proxy
Set
Server__HttpBindtoAny.Send the proxy to port 5137 of the container (plain HTTP), not to port 5138.
Let the proxy pass WebSocket connections (the
UpgradeandConnectionheaders).Set the idle timeout of the proxy to more than 60 seconds.
The proxy does the TLS, and users open dbCove at the address of the proxy.
Set memory and CPU
dbCove has a memory limit of 2 GB and no CPU limit. The embedded PostgreSQL has no limit.
| Limit | dbCove with embedded PostgreSQL | dbCove with your PostgreSQL or Oracle |
|---|---|---|
| Memory | In your saved compose.yaml, change mem_limit: 2g on the dbcove service, for example to mem_limit: 4g. | Change -m 2g in the command, for example to -m 4g. |
| CPU | Add a line below it, for example cpus: 2. | Add --cpus 2 to the command. |
Then start dbCove again. See Change a setting.
dbCove reads the limit of its container when it starts. The API uses at most 55% of the limit for its data, and the web interface 20%. You do not set anything else.
Why there is a limit
Without a limit, dbCove sees all the memory of the server and keeps the memory that it takes. In our test with three small databases, dbCove used more than 1.2 GB without a limit. With the 2 GB limit, it used less than 0.5 GB.
How much memory to give
2 GB is for a small installation. Give more memory when you add databases. We do not publish a size for each number of databases yet.
If the memory is too small
Run
docker inspect -f '{{.State.OOMKilled}} {{.RestartCount}}' dbcove-app.If the first value is
true, or the restart count increases, the container had no more memory. Increase the memory limit.
dbCove also writes a warning to its log when it uses more than half of its memory limit.
Disk
The dbcove-data volume keeps the keys, the certificates and the logs. The repository keeps the data that dbCove collects. In our test, a small database added 13 to 17 MB a day. A busy database adds more.
Back up
Back up the data volume, and the repository:
| Volume | What it keeps |
|---|---|
dbcove-data | The keys, the sealed repository connection, the certificates and the logs. |
dbcove-postgres-data (only with embedded PostgreSQL) | The repository: your settings, users, databases and the data that dbCove collects. It also keeps the password of the PostgreSQL superuser. With your PostgreSQL or Oracle, back up the database there. |
The file /var/lib/dbcove/api/protection.key in dbcove-data opens the values that dbCove keeps sealed on this container. Keep the backup of this volume as safe as a password.
Keep the recovery code too. With it, dbCove can open the stored passwords again when protection.key is lost.
If the data volume is lost
When the container starts with an empty dbcove-data volume and the old repository:
- dbCove connects to the repository again. With embedded PostgreSQL, it uses the password of the PostgreSQL superuser in
dbcove-postgres-datato do this. - The stored passwords stay locked. Enter the recovery code in Settings › Passwords.
- The installation has a new ID. Release a paid license key and activate it again.
- dbCove makes a new certificate.
- Users must sign in again.
What is different from the Windows installation
| Item | In the Docker image |
|---|---|
| SQL Server sign-in | SQL Server logins only. A Windows account and the service account are not available. |
| Repository | dbCove does not install PostgreSQL. The embedded PostgreSQL runs in a second container. Or you use your own PostgreSQL or your own Oracle. |
| Ports | You set the port of the host when you start dbCove. The container uses 5138 (HTTPS) and 5137 (HTTP). |
Related
Updated December 2, 2026