{"id":15077070,"url":"https://github.com/thibaut-gauvin/symfony3_docker","last_synced_at":"2025-10-05T11:31:35.069Z","repository":{"id":84234441,"uuid":"78836082","full_name":"Thibaut-gauvin/symfony3_docker","owner":"Thibaut-gauvin","description":"Symfony 3 boilerplate with docker \u0026 docker-compose","archived":true,"fork":false,"pushed_at":"2020-02-01T14:17:59.000Z","size":94,"stargazers_count":8,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-24T05:31:39.846Z","etag":null,"topics":["docker-compose","docker-images","symfony3"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Thibaut-gauvin.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":"2017-01-13T09:42:33.000Z","updated_at":"2024-03-14T15:44:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff9932fb-7404-4daa-b593-a575265084b4","html_url":"https://github.com/Thibaut-gauvin/symfony3_docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thibaut-gauvin/symfony3_docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thibaut-gauvin%2Fsymfony3_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thibaut-gauvin%2Fsymfony3_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thibaut-gauvin%2Fsymfony3_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thibaut-gauvin%2Fsymfony3_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thibaut-gauvin","download_url":"https://codeload.github.com/Thibaut-gauvin/symfony3_docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thibaut-gauvin%2Fsymfony3_docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278445799,"owners_count":25988058,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker-compose","docker-images","symfony3"],"created_at":"2024-09-25T04:03:20.689Z","updated_at":"2025-10-05T11:31:35.064Z","avatar_url":"https://github.com/Thibaut-gauvin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GET STARTED WITH DOCKER :\n\nMore Infos :\n\n[Docker Documentation](https://docs.docker.com/)\n\n**-----------------------------------------------------**\n\n## Prerequisites\n\nInstall [Docker](https://www.docker.com/) on your system.\n\n- [Install instructions](https://docs.docker.com/installation/mac/) for Mac OS X\n- [Install instructions](https://docs.docker.com/installation/ubuntulinux/) for Ubuntu\n- [Install instructions](https://docs.docker.com/engine/installation/windows/) for Windows (prefer \"Docker For Windows\" than deprecated \"Docker Toolbox\")\n\nNote that using \"Docker Toolbox\" on Windows OS can occur unexpected issues ... \n\nInstall [Docker Compose](http://docs.docker.com/compose/) on your system.\n\n- [Install instructions](https://docs.docker.com/installation/) for all supported systems\n\nCheck that you can use docker commands without sudo ! **[LINUX USER ONLY]**\n- To run docker command without sudo, you need to add your user (who has root privileges) to docker group \u0026 restart your sessions.\n      \n        $ sudo usermod -aG docker \u003cuser_name\u003e\n\n**-----------------------------------------------------**\n\n## Installation:\n\nA Makefile is used to provide some useful shortcuts for manipulating docker \u0026 docker-compose commands\n\n- **1- Create .env file :**   \n\n  First, you need to create a copy of `.env.example` and call it `.env`\n  \n        # Assume you are in project root, on Unix system\n        $ cp .env.example .env\n        \n  This files contains sensible data that not be committed on GIT, you can modify it to you own needs !\n\n- **1- Set the .env file :**   \n\n  Update variables in `.env` file to fit your config \n  \n        # Assume you are in project root, on Unix system\n        $ vi .env\n        \n  Because we use [grumphp](https://github.com/phpro/grumphp), we need to configure git inside the container to be able to commit properly\n\n- **2- Make the :coffee: :**\n\n    Run following command :\n    \n        $ make init\n        \n\tThis command will create \u0026 build Docker images, also start \u0026 configures required Containers, and run provisioning script.\n\tA lot of stuff is downloaded from Internet, so it can take a lot of time, depending on your Internet speed. \n        \n- **3- Your done !**\n\nYou can now access to following services on your host machine:\n\n- **Symfony app [http://localhost](http://localhost)**\n- **Mailhog [http://localhost:1080](http://localhost:1080)**\n- **PhpMyAdmin [http://localhost:8080](http://localhost:8080)**\n\n**When you reboot your computer :**  \n- Just simply run following command to start your Containers (docker Images already created):\n\n        $ make start\n\n**-----------------------------------------------------**\n        \n## Makefile \"tasks\" :\n\nYou can read Makefile located at project root, it contain some comments on what \"recipes\" do.\nFeel free to add more extra recipes depending on your needs.\n\n\t# List available make commands:\n\t$ make help\n\n\n| Recipes         | Utility                                                            |\n|-----------------|--------------------------------------------------------------------|\n| start           | Start containers (Also builds \u0026 pull images, if there not exists)  |\n| stop            | Stop containers \u0026 remove docker networks                           |\n| list            | List current running containers                                    |\n| ssh             | Start new bash terminal inside the Symfony Container               |\n| init            | Execute \"start\" tasks and run provisioning scripts                 |\n| tests           | Execute the entire Unitary \u0026 Functional PhpUnit tests suit         |\n| code-coverage   | Run the entire tests with code coverage                            |\n| logs            | Display current running containers logs (Press \"Ctrl + c\" to exit) |\n| clean-sf-cache  | Clean symfony cache \u0026 logs files                                   |\n| clean-container | Remove stopped useless containers                                  |\n| help            | Display available make commands                                    |\n\n**-----------------------------------------------------**\n\n## Dev Tools :\n\nYou can use `make ssh` to connect inside the symfony container.\n\nWhat is inside ?\n\n- PHP 7.1-fpm with xdebug (dev) or OpCache \u0026 APCu (prod)\n- Nodejs (6.x)\n- [Yarn](https://yarnpkg.com/fr) \n- [Phpmetrics](http://www.phpmetrics.org)\n- [Php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)\n- [Grumphp](https://github.com/phpro/grumphp)\n- Git (with user config)\n- [Tig](https://github.com/jonas/tig)\n\nOther service \n- [Mailhog](https://github.com/mailhog/MailHog) for email testing during development\n- [PhpMyAdmin](https://www.phpmyadmin.net/) a simply mysql administrator\n\n**-----------------------------------------------------**\n\n## Deploy in Production :\n\nIf you want to use in production, you need to : \n- Get SSL certificates, [Let's Encrypt](https://letsencrypt.org) provide them for free\n- You also need to generate a `dhparam.pem` keys to enforce SSL encryption \n\n        # To generate your dhparam.pem file, run in the terminal\n        openssl dhparam -out dhparam.pem 4096\n\n- Copy your `fullchain.pem` \u0026 `privkey.pem` \u0026 `dhparam.pem` to `.data/web` directory\n- Update `.env` file and set `ENV` to \"prod\"\n- Update [nginx prod conf](.docker/prod/prod.conf) and set `server_name` at line 4 \u0026 line 39\n- Run `make start`\n- The first time, you need to build app yourself (like installing vendor \u0026 set parameter.yml ...)\n\nTest your app, http redirect to https. [ssl labs](https://www.ssllabs.com/ssltest) analysis give you a A+ baby ! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaut-gauvin%2Fsymfony3_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibaut-gauvin%2Fsymfony3_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaut-gauvin%2Fsymfony3_docker/lists"}