Mongo Replica set with docker-compose

Posted in IT StuffTagged ,

A replica set in MongoDB is a group of mongod processes that maintain the same data set. Replica sets provide redundancy and high availability and are the basis for all production deployments. Replication provides redundancy and increases data availability. With multiple copies of data on different database servers, replication provides a level of fault tolerance against the loss of a single database….

Install MySQL server with Docker Compose

Posted in IT StuffTagged ,

Inside a new directory, create a data directory and docker-compose.yml with these rows: To start the container, run docker-compose up -d. To stop & remove the container, run docker-compose down. To connect from a MySql client use this: