My project for web dev subject
Now dockerized. It won't really work as expected as my dump don't include correct views and I lost the original code ¯\_(ツ)_/¯
- Docker: Make sure you have Docker installed on your machine. You can download it from Docker's official website.
- Docker Compose: Ensure Docker Compose is installed as it is used to manage multi-container applications.
git clone https://github.com/Parsyfall/webdev-final-project.git
cd webdev-final-project
You will find a docker-compose.yml
file in the root directory of the project. This file defines the services, networks, and volumes required for the application.
Run the following command to build and start the containers:
docker-compose up --build
This command will:
- Build the Docker images as specified in the
Dockerfile
. - Start the PHP application and MySQL database containers.
Once the containers are running, you can access the PHP application by navigating to http://localhost:9000
in your web browser.
The database will automatically be created when you run the application.
To stop the running containers, press CTRL+C
in the terminal where the containers are running, or run:
docker-compose down
To access the MySQL database, you can use a phpMyAdmin (navigate to http://localhost:8080/
) or command-line tool. You can connect to the database using the following credentials:
- Host:
mysql
- Username:
root
- Password:
example
- Database:
biblioteca