deploy react app

hello every one i have app in react and mongo db for our clients , where my db Should be for connect to our app in
the db need to be in the container? or locally on the server

You’d probably want to run your database as a separate app, but in the same organization. The app would be able to connect to the database over the private ipv6 network.