Connect to a database
Use internal credentials from other services, or publish an external port for desktop clients.
Each database's Overview tab shows how to reach it from inside and outside Docker.
Internal credentials
Use these from services on the same Docker network. The database is not exposed to the internet.
| Field | Meaning |
|---|---|
| User | Database username. |
| Password | Database password. |
| Database name | Database to connect to. |
| Internal host | Hostname of the database on the network. |
| Internal port (container) | Port inside the container. |
| Internal connection URL | Full connection string. |
External credentials
Under External credentials, enter an External port (internet) that no other service uses.
Click Save.
Copy the connection URL shown under External host into your client (pgAdmin, MySQL Workbench, phpMyAdmin and similar).
Publish a port only when you need remote access, and protect it with a VPN or IP allowlist. Use internal credentials for apps on the same network.
