This repository contains Docker Compose configurations for several popular services, including SQL Server, MySQL, Redis, PostgreSQL, and RabbitMQ. Each service has its own docker-compose file for easy individual management.
- SQL Server
- MySQL
- Redis
- PostgreSQL
- RabbitMQ
- MongoDB
Ensure you have Docker and Docker Compose installed on your machine. To check the installation, run:
docker --version
docker-compose --version- Clone this repository:
git clone https://github.com/rsantosdosanjos/docker-compose-services.git
cd docker-compose-services- For each service, navigate to the directory where the respective docker-compose file is located and execute the command to start the desired service.
To start SQL Server:
docker-compose -f docker-compose-sql.yml up -dAccess SQL Server on port 1433.
To start MySQL:
docker-compose -f docker-compose-mysql.yml up -dAccess MySQL on port 3306.
To start Redis:
docker-compose -f docker-compose-redis.yml up -dAccess Redis on port 6379.
To start PostgreSQL:
docker-compose -f docker-compose-postgres.yml up -dAccess PostgreSQL on port 5432.
To start RabbitMQ:
docker-compose -f docker-compose-rabbitmq.yml up -dAccess RabbitMQ on port 5672 and the management console on port 15672.
To start MongoDB:
docker-compose -f docker-compose-mongodb.yml up -dAccess MongoDB on port 27017.
To stop any service, use the corresponding command:
docker-compose -f <file> downReplace with the name of the docker-compose file for the service you want to stop. For example, to stop SQL Server, use:
docker-compose -f docker-compose-sql.yml downVolumes are used to ensure data persistence between container restarts. Each service has a configured volume for its data.