Dokploy supports five managed database types — PostgreSQL, MySQL, MariaDB, MongoDB, and Redis. Each database follows the same lifecycle pattern: create, configure, deploy, start/stop, and remove. Databases can expose an external port for direct access and accept environment-variable overrides. All database endpoints follow the patternDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Nettalco/dokploy/llms.txt
Use this file to discover all available pages before exploring further.
/<type>.<action>.
Endpoint Summary
| Method | Endpoint | Description |
|---|---|---|
| POST | /postgres.create | Create a PostgreSQL database |
| GET | /postgres.one | Fetch a PostgreSQL database |
| POST | /postgres.start | Start the database container |
| POST | /postgres.stop | Stop the database container |
| POST | /postgres.deploy | Deploy (provision) the database |
| POST | /postgres.remove | Delete the database |
| POST | /postgres.saveEnvironment | Set environment variables |
| POST | /postgres.saveExternalPort | Expose an external port |
| POST | /postgres.update | Update database configuration |
| POST | /postgres.rebuild | Rebuild the database container |
| POST | /postgres.reload | Reload the database service |
| POST | /postgres.move | Move to another environment |
| GET | /postgres.search | Search PostgreSQL databases |
| POST | /mysql.create | Create a MySQL database |
| GET | /mysql.one | Fetch a MySQL database |
| POST | /mysql.start | Start the database container |
| POST | /mysql.stop | Stop the database container |
| POST | /mysql.deploy | Deploy the database |
| POST | /mysql.remove | Delete the database |
| POST | /mysql.saveEnvironment | Set environment variables |
| POST | /mysql.saveExternalPort | Expose an external port |
| POST | /mysql.update | Update database configuration |
| POST | /mysql.rebuild | Rebuild the container |
| POST | /mysql.reload | Reload the database service |
| POST | /mysql.move | Move to another environment |
| GET | /mysql.search | Search MySQL databases |
| POST | /mariadb.create | Create a MariaDB database |
| GET | /mariadb.one | Fetch a MariaDB database |
| POST | /mariadb.deploy | Deploy the database |
| POST | /mariadb.start | Start the container |
| POST | /mariadb.stop | Stop the container |
| POST | /mariadb.remove | Delete the database |
| POST | /mariadb.saveEnvironment | Set environment variables |
| POST | /mariadb.saveExternalPort | Expose an external port |
| POST | /mariadb.update | Update configuration |
| POST | /mariadb.rebuild | Rebuild the container |
| POST | /mariadb.reload | Reload the database service |
| POST | /mariadb.move | Move to another environment |
| GET | /mariadb.search | Search MariaDB databases |
| POST | /mongo.create | Create a MongoDB database |
| GET | /mongo.one | Fetch a MongoDB database |
| POST | /mongo.deploy | Deploy the database |
| POST | /mongo.start | Start the container |
| POST | /mongo.stop | Stop the container |
| POST | /mongo.remove | Delete the database |
| POST | /mongo.saveEnvironment | Set environment variables |
| POST | /mongo.saveExternalPort | Expose an external port |
| POST | /mongo.update | Update configuration |
| POST | /mongo.rebuild | Rebuild the container |
| POST | /mongo.reload | Reload the database service |
| POST | /mongo.move | Move to another environment |
| GET | /mongo.search | Search MongoDB databases |
| POST | /redis.create | Create a Redis instance |
| GET | /redis.one | Fetch a Redis instance |
| POST | /redis.deploy | Deploy the instance |
| POST | /redis.start | Start the container |
| POST | /redis.stop | Stop the container |
| POST | /redis.remove | Delete the instance |
| POST | /redis.saveEnvironment | Set environment variables |
| POST | /redis.saveExternalPort | Expose an external port |
| POST | /redis.update | Update configuration |
| POST | /redis.rebuild | Rebuild the container |
| POST | /redis.reload | Reload the Redis service |
| POST | /redis.move | Move to another environment |
| GET | /redis.search | Search Redis instances |
Key Endpoints
Create a Database
All database types share the same creation pattern. Supply aname, the target environmentId, and optionally a serverId.
- PostgreSQL
- MySQL
- MongoDB
- Redis
- MariaDB
Display name for the database.
Target environment ID.
Initial superuser password. Auto-generated if omitted.
Initial database name (default:
postgres).Initial superuser username (default:
postgres).Docker image to use (e.g.,
postgres:16).Deploy a Database
After creation, call the deploy endpoint to start the container.ID of the database resource to deploy (field name varies by type).
- PostgreSQL
- MySQL
- MongoDB
- Redis
Save External Port
Expose a database port on the host so external tools (e.g., database clients) can connect directly.- PostgreSQL
- MySQL