Databases
Supported Databases
List and configuration of databases managed by the agent.
The Portabase agent is designed to be agnostic and modular. It natively supports several database engines, whether for local (Docker) or remote backups.
Supported Databases
| Database | Type Key | Support | Tested Versions |
|---|---|---|---|
| PostgreSQL | postgresql | ✅ Stable | 12, 13, 14, 15, 16 |
| MySQL | mysql | ✅ Stable | 5.7, 8.0 |
| MariaDB | mysql | ✅ Stable | 10.x, 11.x |
| MongoDB | mongodb | 🚧 Beta | 5.x, 6.x |
Global Configuration
Regardless of the database, the configuration follows the same pattern. You must tell the agent how to connect (host, port, credentials).
This is the simplest method. The agent has a dedicated command to add a configuration without errors.
# Inside your agent directory
portabase db add .The wizard will ask for:
- The database type (e.g.,
postgresql). - The name (e.g.,
prod-app). - The host (
localhostor IP). - The credentials.
You can also edit the databases.json (or .toml) file mounted in the container.
{
"databases": [
{
"name": "my-db",
"type": "postgresql",
"host": "db-prod",
"port": 5432,
"username": "admin",
"password": "secret_password",
"generatedId": "uuid-v4-unique"
}
]
}For more details on each engine, check the dedicated pages in this section.