To setup this development environment you will need to have docker and docker-compose installed on you system. You can add your projects to the folder htdocs and a file.sql into the folder data.
To run the environment:
-
clone the repository
-
enter this folder
-
run
sudo docker-compose up -d
The environment is composed of PHP, Apache (running on port 80), MariaDB and PHPmyadmin (running on port 8081).
This environment is a basic one with only an handful of tools. If you need to implement new things, such as a mailing system, you will have to do so on the docker-compose.yml or/and Dockerfile.
If all is well you should have access to your environment at http://localhost:80.
To stop the process run sudo docker-compose down
, and to clean the created
image run sudo docker rmi docker_env_server
.
Note
|
You can always ask help to your coach to setup your environment. |