{"id":19732794,"url":"https://github.com/adcpd/docker-php-apache","last_synced_at":"2026-03-04T11:31:56.056Z","repository":{"id":98062775,"uuid":"456609085","full_name":"ADCPD/docker-php-apache","owner":"ADCPD","description":"Symfony development environment","archived":false,"fork":false,"pushed_at":"2022-02-07T17:43:47.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T18:17:11.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ADCPD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-07T17:31:55.000Z","updated_at":"2022-02-07T17:38:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7b4cc6e-15d4-4d03-a58a-2d5a12ced02a","html_url":"https://github.com/ADCPD/docker-php-apache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fdocker-php-apache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fdocker-php-apache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fdocker-php-apache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fdocker-php-apache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ADCPD","download_url":"https://codeload.github.com/ADCPD/docker-php-apache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241058359,"owners_count":19902168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T00:27:58.920Z","updated_at":"2025-02-27T20:47:56.921Z","avatar_url":"https://github.com/ADCPD.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-php-apache\nSymfony development environment\n\n\n\u003e phpmyadmin: http://localhost:8080/index.php\n  HOST: http://localhost:88 \n  GUIDE : https://gist.github.com/subfuzion/08c5d85437d5d4f00e58\n\u003e\nPreparer les containers \n`` docker-compose build ``\n\nLancer les containers\n`` docker-compose up -d ``\n\nTo run the console command inside the Docker execute the following command in your terminal:\n`` docker-compose run php composer install ``\n\nThe above command will be executed on php container where we have the access to the PHP-FPM service and the Composer. To run any other command:\n`` c bin/console doctrine:schema:update --force ``\n\nDrop  all intalled container\n`` docker-compose stop $(docker-compose ps -a -q) ``\n\nSi probleme de connexion  avec la base de données dans .ENV: \n------------\n\nRemplacer : \n`` DATABASE_URL=mysql://sf5:sf5@127.0.0.1:3306/db_sf5``\npar \n`` DATABASE_URL=mysql://sf5:sf5@mysql:3306/db_sf5`` \n\nTo manipulate the repo where the project is created : \n`` docker-compose exec php bash ``\n\nPurging All Unused or Dangling Images, Containers, Volumes, and Networks\n`` docker system prune ``\n\nRemove one or more specific images\n`` docker images -a ``\n\nRemove one or more specific containers\n`` docker ps -a ``\n\nResolve conflict master \n``\ngit checkout master\ngit merge --no-ff hotfix1\ngit commit -m \"resolved conflict and master merged\"\ngit push origin master\n``\nReturn real path \n```\npwd\n```\n\nSet 0777 acces controle to var/cache repository\n```\ndocker-compose exec php bash // access to container php\ncd var\nchmod -R 0777 .\n```\n[voir plus](https://stackoverflow.com/questions/16955980/git-merge-master-into-feature-branch)\n\n# Run project \n- Build container\n`` sudo docker-compose build ``\n-  Display the running processes\n`` sudo docker-compose build``\n- start docker with -watch event\n`` sudo docker-compose top``\nor Start project \n`` sudo docker-compose start``\n\n#### SQL \n\nCreating a new database using mysql program\n```\ndocker-compose exec mysql bash\nmysql -u root -p\nCREATE DATABASE db_mydatabase  \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadcpd%2Fdocker-php-apache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadcpd%2Fdocker-php-apache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadcpd%2Fdocker-php-apache/lists"}