git clone https://github.com/lailacha/docker_projet_esgi
docker-compose up -d
This command will create the docker container and its images (Apache server, Phpmyadmin, MYSQL)
You need to define some variables to use databases.
- Create php file conf.inc.php
- define variables into the file like that:
define("DBDRIVER", "mysql");
define("DBUSER", "root");
define("DBPWD", "password");
define("DBHOST", "database");
define("DBNAME", "database_name");
define("DBPORT", "3306");
define("DBPREFIXE", "esgi_");
Got to http://localhost:8080/
The project is ready 🎉