Data
PostgreSQL, MySQL, MongoDB, Redis, disks, tasks, and templates.
A database, a disk, and a template install all use the project and environment you have selected. Create that pair first. dflow context:show prints it.
dflow db:postgres:create starts PostgreSQL. dflow db:mysql:create starts MySQL. dflow db:mongodb:create starts MongoDB. dflow db:redis:create starts Redis. The Redis provider id is redis. PostgreSQL, MySQL, and MongoDB require --database, the name inside the engine. dflow db:link connects a ready database to an application and redeploys it. Linking writes DFLOW_DATABASE_* for PostgreSQL, MySQL, and MongoDB, and DFLOW_REDIS_* for Redis. dflow db:credentials shows the password once.
--storage on each create command defaults to 20Gi. A size from 1Gi through 100Gi is accepted. PostgreSQL --version is 16, 17, or 18, and the default is 18. MySQL --version is 8.0 or 8.4, and the default is 8.0. MongoDB --version is 6, 7, or 8, and the default is 8. Redis has no version flag.
MongoDB is one instance, still a replica set.
When the object store driver is s3, a new PostgreSQL, MySQL, or Redis database gets a daily backup at 02:00 UTC, five-field cron 0 2 * * *, kept 7 days. Point-in-time restore is on for those three. MongoDB backups are not available. On MongoDB, dflow db:backups:list, dflow db:backups:create, and dflow db:restore return that backups are not available. Deleting a database does not delete the bucket copy. Delete and restore still ask you to confirm the name.
A volume is a disk mounted into the application. A job is a task that runs and exits, or a task on a schedule. A template installs a ready-made application into the current environment.
- dflow db:postgres:create
dflow db:mysql:createdflow db:mongodb:create- dflow db:redis:create
- dflow db:list
- dflow db:info
- dflow db:credentials
- dflow db:link
- dflow db:delete
- dflow db:backups:list, dflow db:backups:create, and dflow db:restore
- dflow volumes:create, dflow volumes:list, dflow volumes:inspect, dflow volumes:mount, dflow volumes:umount, dflow volumes:expand, and dflow volumes:delete
- dflow jobs:create, dflow jobs:schedule, dflow jobs:logs, and dflow jobs:delete
- dflow groups:create and dflow groups:list
- dflow templates:list and dflow templates:install
How is this guide?
Last updated on