Database Engines

by bradrydzewski

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.

MySQL

The below example demonstrates configuring the mysql database driver. See the driver documentation for a complete set of configuration string options and examples.

version: '2'

services:
  drone-server:
    image: drone/drone:0.5
    environment:
+     DRONE_DATABASE_DRIVER: mysql
+     DRONE_DATABASE_DATASOURCE: root:pa55word@tcp(1.2.3.4:3306)/drone?parseTime=true

Postgres

The below example demonstrates configuring the postgres database driver. See the driver documentation for a complete set of configuration string options and examples.

version: '2'

services:
  drone-server:
    image: drone/drone:0.5
    environment:
+     DRONE_DATABASE_DRIVER: postgres
+     DRONE_DATABASE_DATASOURCE: postgres://root:pa55word@1.2.3.4:5432/postgres?sslmode=disable