Docker Community Forums

Share and learn in the Docker community.

Create docker container with couple of applications

docker

#1

Hello,

Can a docker container have multiple applications like…

  1. UI application - html5 / react /angualr based
  2. Backend application - .Net web api / node api
  3. Application for accessing external API / Database / Authentication

Is it advisable to have all applications in single docker container ?

would be better if you can share some way with sample or details so I can try to implement the same.

Thank you in advance…!!


#2

There a no technical restrictions that prevents you from applying old patterns from the vm world to a container. Though, this is not the docker way…

It is strongly advices to create single purpose containers.
Take a look at the Dockerfiles of multi container stacks on Docker Hub. There are plenty to learn from.