
[#configuring-a-datasource]
= Configuring a datasource

.Prerequisites

* A Maven-based application.
* A JDBC Driver configured.

.Procedure
. Edit the `project-defaults.yml` file to configure one or more datasources
using the JDBC driver of your choice. The configuration is stored under `swarm`
-> `datasources` -> `data-sources`:
+
[source,yaml]
----
swarm:
  datasources:
    data-sources:
include::src/main/resources/project-defaults.yml[tag=datasource,indent=6]
----

