This project is a Dockerized application featuring two services:
- A Flask RESTful API (
books-service
) that provides a JSON list of books. - A PHP (
website
) that fetches and displays this data.
Docker Compose orchestrates these services for easy setup and management.
Before running this project, ensure you have the following software installed on your system:
- Docker: The platform for developing, shipping, and running applications in containers.
Download Docker Desktop from the official Docker website.
Follow these steps to set up and run the application locally.
First, clone the project repository to your local machine:
git clone https://github.com/SultanSB/DockerProject.git
Navigate to the root directory of the cloned repository and execute the following command to build the Docker images and start the services:
docker compose up --build
Once the containers are successfully running, you can access the application components:
Frontend Website: Open your web browser and navigate to http://localhost:5000 to view the book list.