This repository contains pre-configured Docker Compose setups for popular database systems to streamline local development and testing. Each database setup includes a database server and, where applicable, a web-based management tool for ease of use.
This repository provides Docker Compose configurations for the following database systems:
- Redis - A high-performance in-memory data structure store, with RedisInsight for visual management.
- PostgreSQL - A powerful open-source relational database, with Adminer for web-based administration.
- MySQL - A widely-used open-source relational database, also paired with Adminer.
Each setup is self-contained within its directory and ready for deployment with minimal configuration.
- Directory:
docker-database/redis
- Management Tool: RedisInsight
- Default Port: 6379
- See full README
- Directory:
docker-database/postgresql
- Management Tool: Adminer
- Default Port: 5432
- See full README
- Directory:
docker-database/mysql
- Management Tool: Adminer
- Default Port: 3306
- See full README
⚠️ Ensure Docker or the Docker daemon is running on your device before proceeding.
-
Clone the repository:
git clone https://github.com/munzirulalom/docker-databases.git
-
Navigate to the desired database directory (e.g., Redis, PostgreSQL, or MySQL):
cd docker-databases/<database-name>
-
Start the services using Docker Compose:
docker compose up -d
docker compose down
docker compose up -d
Each database has specific instructions for connecting to the database server and accessing web-based management tools:
Refer to the respective README.md
files in each directory for detailed connection instructions.
With this repository, you can easily set up and run popular databases for local development. Simply navigate to the desired directory, start the services, and connect to your environment. Happy coding! 🚀