Docker Community Forums

Share and learn in the Docker community.

Deploy .netcore webapi and react-js application to single docker container

(Yvinap) #1

We are developing an application where UI is developed using ReactJS and APIs are developed on .Net Core framework. ReactJS application will be deployed on Nginx. WebAPIs will also use NGinx for reverse proxy.

I am trying to write a script for generating docker container for the entire application.

Docker recommends to use separate container in such situations and use docker compose for handling dependencies between the containers. But our application have a reporting feature in which reports generated by APIs are stored on virtual directory accessible by Web application. For this reason we were thinking to have single container for whole application.

Will having a single container cause any issue? Can we run Nginx and Kestrel in one docker container using shell command file?