A web application that allows users to upload and view images, similar to the popular image hosting service Imgur. The application is built using PHP and MySQL, with Docker containers for easy deployment and management.
backend | ||
frontend | ||
LICENSE | ||
README.md |
Imgur Clone Overview
This document provides an overview of the ports used in the provided Docker Compose file and how to run the project on your local machine.
Service Ports
PHP Runtime Service
- Container Port: 8000
- Host Port: 8000
- Description: Exposes the PHP runtime environment for hosting PHP web applications.
Database Service (MySQL)
- Container Port: 3306
- Host Port: 3306
- Description: Exposes the MySQL database server for storing and managing application data.
Adminer Service
- Container Port: 8080
- Host Port: 8080
- Description: Exposes Adminer, a web-based database management tool, for interacting with the MySQL database through a web interface.
How to Run
-
Navigate to the
backend
folder of this project in your terminal:cd path/to/backend
-
Run the following command to start the Docker containers:
docker compose up
-
Once the containers are up and running, you can access the services using the following URLs:
- PHP Runtime Service: http://localhost:8000
- Adminer: http://localhost:8080
-
Use the following login information to access Adminer and see the database of files:
- Server:
database
- Username:
root
- Password:
root
- Server:
-
After logging into Adminer, follow these steps:
- Click on
image_database
from the list of databases. - Click on
image_table
from the list of tables. - Select
Select data
to see the uploaded files information.
- Click on
To be continued