What is best practice for sharing database between containers in docker? : <p>Is there anyone knows what is the best practice for sharing database between containers in docker? <br></p>

<p>What I mean is I want to create multiple containers in docker. Then, these containers will execute CRUD on the same database with same identity. <br></p>

<p>So far, I have two ideas. One is create an separate container to run database merely. Another one is install database directly on the host machine where installed docker. </p>

<p>Which one is better? Or, is there any other best practice for this requirement?</p>

<p>Thanks</p>
