This guide provides instructions for using alternate storage engines. Please note this is optional. The default storage engine is an embedded SQLite database which requires zero installation or configuration.
The below example demonstrates mysql database configuration. See the official driver documentation for configuration options and examples.
version: '2' services: drone-server: image: drone/drone:0.8 environment: + DRONE_DATABASE_DRIVER: mysql + DRONE_DATABASE_DATASOURCE: root:password@tcp(184.108.40.206:3306)/drone?parseTime=true
The below example demonstrates postgres database configuration. See the official driver documentation for configuration options and examples.
version: '2' services: drone-server: image: drone/drone:0.8 environment: + DRONE_DATABASE_DRIVER: postgres + DRONE_DATABASE_DATASOURCE: postgres://root:email@example.com:5432/postgres?sslmode=disable
Drone does not create your database automatically. If you are using the mysql or postgres driver you will need to manually create your database using
Drone automatically handles database migration, including the initial creation of tables and indexes. New versions of Drone will automatically upgrade the database unless otherwise specified in the release notes.
Drone does not perform database backups. This should be handled by separate third party tools provided by your database vendor of choice.
Drone does not perform data archival; it considered out-of-scope for the project. Drone is rather conservative with the amount of data it stores, however, you should expect the database logs to grow the size of your database considerably.
Is there a mistake on this page? Please let us know or edit this page.