# Define external (RDS) service

**URL:** <https://forums.suse.com/t/define-external-rds-service/8397>\
**Category:** General\
**Created:** [January 29, 2018, 12:01pm UTC](https://forums.suse.com/t/define-external-rds-service/8397 "2018-01-29T12:01:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkaramol](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/pkaramol/32/2883_2.png) [@pkaramol](https://forums.suse.com/u/pkaramol)\
**Post date:** [January 29, 2018, 12:01pm UTC](https://forums.suse.com/t/define-external-rds-service/8397/1 "2018-01-29T12:01:52Z")

</div>

How can I define an external service (and also its endpoint of course) using `docker-compose.yml` ?

The example [here](http://rancher.com/docs/rancher/latest/en/cattle/adding-external-services/) only indicates how to provide the endpoint url for `rancher-compose.yml`

How do we go about it in `docker-compose.yml`?

e.g. do we declare something like:

```
version: '2'
services:
  db:
    image: rancher/external-service
    endpoint: <amazon-rds-endpoint> 
  redis:
    image: redis

```

???
