{"id":15026786,"url":"https://github.com/ger86/symfony-docker","last_synced_at":"2025-04-05T20:07:57.634Z","repository":{"id":37964174,"uuid":"227101020","full_name":"ger86/symfony-docker","owner":"ger86","description":"This is a complete stack for running Symfony 6 with PHP-FPM 8.2 and MySQL 8 into Docker containers using docker-compose tool.","archived":false,"fork":false,"pushed_at":"2024-02-16T19:23:45.000Z","size":12723,"stargazers_count":282,"open_issues_count":11,"forks_count":155,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-29T19:04:53.439Z","etag":null,"topics":["docker","docker-symfony","mysql","mysql8","nginx","php","php-74","php-81","php-fpm","symfony","symfony-6","symfony-docker","symfony5","symfony6"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ger86.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-12-10T11:19:28.000Z","updated_at":"2025-03-29T16:37:27.000Z","dependencies_parsed_at":"2024-11-13T21:14:21.726Z","dependency_job_id":null,"html_url":"https://github.com/ger86/symfony-docker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Fsymfony-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Fsymfony-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Fsymfony-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Fsymfony-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ger86","download_url":"https://codeload.github.com/ger86/symfony-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393570,"owners_count":20931812,"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":["docker","docker-symfony","mysql","mysql8","nginx","php","php-74","php-81","php-fpm","symfony","symfony-6","symfony-docker","symfony5","symfony6"],"created_at":"2024-09-24T20:05:05.878Z","updated_at":"2025-04-05T20:07:57.604Z","avatar_url":"https://github.com/ger86.png","language":"PHP","readme":"# 🐳 Docker + PHP 8.2 + MySQL + Nginx + Symfony 6.2 Boilerplate\n\n## Description\n\nThis is a complete stack for running Symfony 6.2 into Docker containers using docker-compose tool.\n\nIt is composed by 4 containers:\n\n- `nginx`, acting as the webserver.\n- `php`, the PHP-FPM container with the 8.2 version of PHP.\n- `db` which is the MySQL database container with a **MySQL 8.0** image.\n\n## Installation\n\n1. 😀 Clone this repo.\n\n2. If you are working with Docker Desktop for Mac, ensure **you have enabled `VirtioFS` for your sharing implementation**. `VirtioFS` brings improved I/O performance for operations on bind mounts. Enabling VirtioFS will automatically enable Virtualization framework.\n\n3. Create the file `./.docker/.env.nginx.local` using `./.docker/.env.nginx` as template. The value of the variable `NGINX_BACKEND_DOMAIN` is the `server_name` used in NGINX.\n\n4. Go inside folder `./docker` and run `docker compose up -d` to start containers.\n\n5. You should work inside the `php` container. This project is configured to work with [Remote Container](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension for Visual Studio Code, so you could run `Reopen in container` command after open the project.\n\n6. Inside the `php` container, run `composer install` to install dependencies from `/var/www/symfony` folder.\n\n7. Use the following value for the DATABASE_URL environment variable:\n\n```\nDATABASE_URL=mysql://app_user:helloworld@db:3306/app_db?serverVersion=8.0.33\n```\n\nYou could change the name, user and password of the database in the `env` file at the root of the project.\n\n## To learn more\n\nI have recorded a Youtube session explaining the different parts of this project. You could see it here:\n\n[Boilerplate para Symfony basado en Docker, NGINX y PHP8](https://youtu.be/A82-hry3Zvw)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fger86%2Fsymfony-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fger86%2Fsymfony-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fger86%2Fsymfony-docker/lists"}