Welcome to Docker Compose Examples repository! This collection provides a set of practical examples to help you understand and utilize Docker Compose effectively in your projects. Each example is designed to demonstrate different use cases and configurations, serving as a reference for both beginners and experienced users alike.
Docker Compose is a tool for defining and running multi-container Docker applications. It uses a YAML file to configure the application's services, allowing you to define the services, networks, and volumes required for your application in a single file. This simplifies the process of managing complex applications with multiple interconnected containers.
This repository aims to provide clear, concise, and practical examples of using Docker Compose for various scenarios, including web applications, databases, microservices, and more. Whether you're just getting started with Docker Compose or looking for advanced configurations, you'll find useful examples here to help you along the way.
Before you can use the examples in this repository, ensure that you have the following prerequisites installed on your system:
- Docker: Install Docker Engine to run Docker containers on your system.
- Docker Compose: Install Docker Compose to define and run multi-container Docker applications using a YAML configuration file.
To use the examples in this repository, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/tamer-dev/docker-compose-examples.git
-
Navigate to the directory of the example you want to explore:
cd docker-compose-examples/example-directory
-
Follow the instructions provided in the example's README.md file to build and run the Docker Compose configuration.
Browse through the following examples to learn more about using Docker Compose for different scenarios:
- Laravel (PHP): Web Application with NGINX and PHP Laravel
- mySQL (Database): Database Service for mySQL
- PostgreSQL (Database): Database Service for PostgreSQL
Each example directory contains a README.md file with detailed instructions on how to build, run, and customize the Docker Compose configuration for that specific scenario.
Contributions to this repository are welcome! If you have a Docker Compose example that you'd like to share, feel free to submit a pull request with your changes. Please ensure that your example is well-documented and follows the existing structure of the repository.
If you encounter any issues or have suggestions for improvement, please open an issue on GitHub.
This repository is licensed under the MIT License, allowing you to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software. See the LICENSE file for more details.
Feel free to customize the content according to your preferences or add more details specific to your project!