{"id":25736076,"url":"https://github.com/martinsoenen/docker-boilerplate-website","last_synced_at":"2025-06-28T07:35:41.002Z","repository":{"id":102297234,"uuid":"249957611","full_name":"martinsoenen/Docker-boilerplate-Website","owner":"martinsoenen","description":"Docker boilerplate for most of the PHP projects.","archived":false,"fork":false,"pushed_at":"2020-03-25T11:18:38.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:30:33.687Z","etag":null,"topics":["composer","docker","docker-boilerplate","docker-compose","fpm","mailhog","mysql","mysql-database","mysql-server","nginx","nginx-docker","nginx-php-fpm","php","phpmyadmin","phpmyadmin-docker","ready-to-run","ready-to-use"],"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/martinsoenen.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,"zenodo":null}},"created_at":"2020-03-25T11:14:25.000Z","updated_at":"2021-09-14T18:20:50.000Z","dependencies_parsed_at":"2023-03-13T15:23:02.745Z","dependency_job_id":null,"html_url":"https://github.com/martinsoenen/Docker-boilerplate-Website","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/martinsoenen/Docker-boilerplate-Website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinsoenen%2FDocker-boilerplate-Website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinsoenen%2FDocker-boilerplate-Website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinsoenen%2FDocker-boilerplate-Website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinsoenen%2FDocker-boilerplate-Website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinsoenen","download_url":"https://codeload.github.com/martinsoenen/Docker-boilerplate-Website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinsoenen%2FDocker-boilerplate-Website/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262393405,"owners_count":23304108,"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":["composer","docker","docker-boilerplate","docker-compose","fpm","mailhog","mysql","mysql-database","mysql-server","nginx","nginx-docker","nginx-php-fpm","php","phpmyadmin","phpmyadmin-docker","ready-to-run","ready-to-use"],"created_at":"2025-02-26T05:38:59.359Z","updated_at":"2025-06-28T07:35:40.996Z","avatar_url":"https://github.com/martinsoenen.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Boilerplate\n\nMade by [Martin Soenen](https://github.com/Pinou10001) \u0026 available on GitHub.\n\nContainers created in a base of [https://phpdocker.io].\n\n  | Services installed in this boilerplate | Installation container |\n  |----------------------------------------|------------------------|\n  | PHP \u0026 PHP-FPM                          | php                    |\n  | NGINX                                  | nginx                  |\n  | MySQL                                  | mysql                  |\n  | PHPMyAdmin                             | phpmyadmin             |\n  | Composer                               | php                    |\n  | MailHog                                | mailhog                |\n\n\n## First install\n\nFill in the variable names in the `.env` file specific to your project.  \n\nBuild the Docker containers : `docker-compose build`.  \nOnce this is done, you can run the containers : `docker-compose up -d`.  \n\nAt the first launch after building the containers, wait a few seconds for MySQL to launch properly.  \n\nThe project is now available if you go to the URL `localhost` !  \nIf you want to have a better URL, you can add the following line to your hosts file `127.0.0.1 ${PROJECT_URL}` and the project will be available on the URL you set in the PROJECT_URL line of your .env file !  \n\nYou can put your project files at the root of this boilerplate.\n\n\n## Accessing services\n\nTo access PHPMyAdmin, just go to the port 81 of your project.  \nTo access MailHog, just go to the port 82 of your project.  \n\nFor obvious security reasons, it is not recommended to use these ports for a production environment.  \n\nTo access Composer, you must enter the PHP container : `docker-compose exec php bash`. You will then be able to do your Composer commands.  \n\nBe careful, the IP address of the database is the name of the container. The address to indicate in the configuration files of your framework/CMS is therefore : `mysql`.  \n\n## Docker-compose cheatsheet\n\n  * Start the containers by watching their logs : `docker-compose up`\n  * Start the containers in the background : `docker-compose up -d`\n  * Stop the containers : `docker-compose stop`\n  * Kill the containers : `docker-compose kill`\n  * Delete the containers : `docker-compose rm`\n  * Stop and delete the containers : `docker-compose down`\n  * Check the status of the containers : `docker-compose ps`\n  * Watch the container logs : `docker-compose logs`\n  * Making a command in a container : `docker-compose exec CONTAINER_NAME COMMAND` where `COMMAND` is your command. Examples :  \n    - Open a console in the php-fpm container : `docker-compose exec php bash`\n    - Open the Symfony console : `docker-compose exec php bin/console`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinsoenen%2Fdocker-boilerplate-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinsoenen%2Fdocker-boilerplate-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinsoenen%2Fdocker-boilerplate-website/lists"}