Start logstash along with docker container

The requirement is to run container as a service. That is when we start a container it has to start logstash along with it. I have a config file within the logstash image which take beat input and output to elasticsearch. So whenever i start the container it has to send the beat to es. Is it possible to create. Like if we execute service start healthbeat from command line it start sending data.

Thanks for the reply but i have figured out a way to achieve it.