This feature has been around for a while, but there still might be some of you unaware that you can attach services to Docker containers and use them in your builds. The feature is free with no limits imposed and includes the following services:

  • MySQL
  • MongoDB
  • Postgres
  • MariaDB
  • Redis
  • Memcached
  • Elasticsearch

List of actions that support services

Actions supporting services
Actions supporting services

How to attach services to your build

  1. Click the build action that you want to use and switch to the Services tab

    Location of Services tab
    Location of Services tab
  2. Click the Attach button to expand the list of services available

    List of services available
    List of services available
  3. Once you select the service it'll be attached to your build and connection details presented

    Service details
    Service details
  4. Make sure to Save your changes when you're done!

Not that data stored in the service is not persistent between executions: everything is recreated from scratch on each execution.