# Instantiate environment to run tests

**URL:** <https://drone.discourse.group/t/instantiate-environment-to-run-tests/8843>\
**Category:** Drone Support\
**Created:** [November 5, 2018, 3:30pm UTC](https://drone.discourse.group/t/instantiate-environment-to-run-tests/8843 "2018-11-05T15:30:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elegos](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/elegos/32/4916_2.png) [@elegos](https://drone.discourse.group/u/elegos)\
**Post date:** [November 5, 2018, 3:30pm UTC](https://drone.discourse.group/t/instantiate-environment-to-run-tests/8843/1 "2018-11-05T15:30:53Z")

</div>

Hello!

I’m working on an application which, in order to run the tests, requires a series of satellite services (Postgres, Mongo, Redis etc). Thinking about multiple Drone test instances, I thought I need to instanciate these servers per drone run.

Further elaborating the idea, I thought about creating some docker images containing the said services with a data snapshot and then instanciate an instance of them, just like we’re actually doing via docker-compose.

My question then is: is it possible to do this in the .drone.yml file?  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [November 5, 2018, 3:34pm UTC](https://drone.discourse.group/t/instantiate-environment-to-run-tests/8843/2 "2018-11-05T15:34:17Z")

</div>

It sounds like this is what you are looking for: [http://docs.drone.io/services/](http://docs.drone.io/services/)

---

<div class="post-metadata">

**Author:** ![elegos](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/elegos/32/4916_2.png) [@elegos](https://drone.discourse.group/u/elegos)\
**Post date:** [November 5, 2018, 3:43pm UTC](https://drone.discourse.group/t/instantiate-environment-to-run-tests/8843/3 "2018-11-05T15:43:30Z")

</div>

Thank you, that’s exactly what I was looking for 🙂
