# Multiple applications in a single container!

**URL:** <https://forums.docker.com/t/multiple-applications-in-a-single-container/54772>\
**Category:** General\
**Tags:** docker\
**Created:** [July 25, 2018, 12:05pm UTC](https://forums.docker.com/t/multiple-applications-in-a-single-container/54772 "2018-07-25T12:05:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![terpz](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/terpz/32/36125_2.png) [@terpz](https://forums.docker.com/u/terpz)\
**Post date:** [July 27, 2018, 11:01am UTC](https://forums.docker.com/t/multiple-applications-in-a-single-container/54772/4 "2018-07-27T11:01:47Z")

</div>

Agree with David, one container pr service is 🤘 and should always be the way you build your containers.

BUT

There might be reasons for this not to work, and as David said, supervisor is (for me) the answer.  
I just put an example on another post:

> [@CentOS 7 systemd](https://forums.docker.com/t/centos-7-systemd/54791/6):
>
> Hi You are not going to get that to work in Docker. What I use, in the rare cases i need multiple services running in same container, is supervisor. quick example: services.conf: [program:sshd] directory=/usr/local/ command=/usr/sbin/sshd -D autostart=true autorestart=true redirect\_stderr=true [program:someOtherService] directory=/usr/local/ command=/usr/sbin/Otherservice -D autostart=true autorestart=true redirect\_stderr=true Dockerfile RUN apt-get install -y supervisor AD…

( you might need to open that, the format is not great here i can see 😂 )

---

_[View the full topic](https://forums.docker.com/t/multiple-applications-in-a-single-container/54772)._
