Skip to content

Add new PHP project

Hamdi Afrit edited this page Apr 29, 2020 · 5 revisions

1- Create you data/project_folder.
2- Add domain.conf file into docker/nginx/. 3- Into the domain.conf you must add server_name www.your-domain.xyz;
4- Add the domain.conf file path into docker-compose.yml under webserver -> volumes. 5- Add your www.your-domain.xyz into you host file 127.0.0.1 www.your-domain.xyz. 6- Rebuild your docker: under main folder ha-php-docker run make docker-start-d. 7- Under your web browser go to www.your-domain.xyz and enjoy! :). 8- To view container into web browser user www.your-domain.xyz:[container_port].

This docker is comming with Symfony 3 / 4 / 5 projects folder examples.
To work with this examples add into your host file 127.0.0.1 dev.sf3.local dev.sf4.local dev.sf5.local

Good job !

Clone this wiki locally