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 -d
Access SQL Server on port 1433
.
To start MySQL:
docker-compose -f docker-compose-mysql.yml up -d
Access MySQL on port 3306
.
To start Redis:
docker-compose -f docker-compose-redis.yml up -d
Access Redis on port 6379
.
To start PostgreSQL:
docker-compose -f docker-compose-postgres.yml up -d
Access PostgreSQL on port 5432
.
To start RabbitMQ:
docker-compose -f docker-compose-rabbitmq.yml up -d
Access RabbitMQ on port 5672
and the management console on port 15672
.
To start MongoDB:
docker-compose -f docker-compose-mongodb.yml up -d
Access MongoDB on port 27017
.
To stop any service, use the corresponding command:
docker-compose -f <file> down
Replace 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 down
Volumes are used to ensure data persistence between container restarts. Each service has a configured volume for its data.