Accessing Databases from the Host
Because MultiDocker strips host port bindings, databases are not published on the host in the usual way. Here is how to reach them anyway.
The fastest path: inspect
Section titled “The fastest path: inspect”mdocker inspect lists every service’s container, ports and environment, and prints a
ready-to-copy connection string:
mdocker inspect auroramdocker inspect aurora --json # machine-readableEach database service gets a mysql://, postgres://, redis:// or mongodb://
string you can paste straight into a client.
Connecting a GUI client
Section titled “Connecting a GUI client”With OrbStack, every container is reachable from the host at
<service>.<project>.orb.local. For example, in TablePlus:
| Field | Value |
|---|---|
| Host | db.aurora.orb.local |
| Port | 3306 (the internal default) |
| User / Password | from the project’s original compose |
No port mapping is required — the container is directly addressable.
Docker Desktop does not expose host DNS into containers, so
<service>.<project>.orb.local will not resolve. To reach the database you must
map a port temporarily by adding it to the override by hand.
Interactive shell and one-click open
Section titled “Interactive shell and one-click open”MultiDocker ships DB helpers that auto-detect the dialect (MySQL/MariaDB, PostgreSQL, Redis, MongoDB):
mdocker db list aurora # which services are databasesmdocker db shell aurora # interactive client inside the containermdocker db open aurora # launch TablePlus via a connection URLmdocker db open aurora --print # just print the URLIf a project has more than one database service, pass --service <name> to pick one.
Related
Section titled “Related”Cookie settings
We only use statistics tools if you allow it. Necessary storage keeps this site working; everything else is off until you decide.
Stores your choice from this dialog in your browser (localStorage). No cookie, no transfer to third parties.
Google Analytics 4 via Google Tag Manager, to measure how the site is used. Loaded only after you allow it.