{"id":15026646,"url":"https://github.com/neg0/docfony","last_synced_at":"2025-04-09T20:21:18.773Z","repository":{"id":128246762,"uuid":"115770981","full_name":"neg0/docfony","owner":"neg0","description":"Docker Symfony Development Stack using PHP, NGINX, MySQL, MongoDB, and Redis","archived":false,"fork":false,"pushed_at":"2019-08-27T23:19:59.000Z","size":65,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T22:13:00.203Z","etag":null,"topics":["docker","mongodb","mysql","nginx","php","php74","redis","symfony"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neg0.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":"2017-12-30T03:27:22.000Z","updated_at":"2021-04-04T20:27:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3aa7902-c544-48eb-87cb-cb2c6d02302d","html_url":"https://github.com/neg0/docfony","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg0%2Fdocfony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg0%2Fdocfony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg0%2Fdocfony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neg0%2Fdocfony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neg0","download_url":"https://codeload.github.com/neg0/docfony/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104253,"owners_count":21048307,"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","mongodb","mysql","nginx","php","php74","redis","symfony"],"created_at":"2024-09-24T20:04:50.471Z","updated_at":"2025-04-09T20:21:18.740Z","avatar_url":"https://github.com/neg0.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eDocfony\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003eDocker Symfony Development Stack\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://travis-ci.org/neg0/docfony.svg?branch=master\" alt=\"build:passed\"\u003e\u003c/p\u003e\n\n* **PHP**   \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;_7.4-RC_\n* **NGINX** _1.17_\n* **MySQL** _8.0_\n* **Mongo** _4.0_\n* **Redis** \u0026nbsp;\u0026nbsp;_5.0_\n\n## Requirements \n* Operating Systems supported by Docker _\u003csmall\u003e(Please checkout \u003ca href=\"https://docs.docker.com/engine/installation/#supported-platforms\" target=\"_blank\"\u003eSupported platforms\u003c/a\u003e)\u003c/small\u003e_\n* Docker version 17.x _\u003csmall\u003e(Please visit \u003ca href=\"https://www.docker.com/community-edition\" target=\"_blank\"\u003eDocker Community Edition\u003c/a\u003e)\u003c/small\u003e_\n* Docker Compose should be enabled\n* Symfony Framework 4+\n\n## Download\nPlease ensure there is no similar service are running on the same ports on your host machine before \nstart running the containers; after successfully cloning the repository, you should see a folder named **docfony**; \nplease go inside the **docfony** and follow the rest of the document:\n\n    $ git clone https://github.com/impixel/docfony.git\n    $ cd docfony\n\n\u003e For Stable version; please download the archive version of latest stable release of\nDocfony from Releases tab on Github\n\n## Makefile\nIf you are novice to Docker, you could use `Makefile` to get your environment up and running by:\n\n    $ make help\n\n## Build Docker Images\nIn order to build the images and create the containers please run:\n\n    $ make build\n    $ make up\n\nDocker daemon starts to download and build the required images to run your Symfony application. During process docker will create three virtual volumes for data presistency for both databases MySQL and Mongo:\n* __docfony-dev-mysql__ _It will store MySQL Database data files from_ `/var/lib/mysql` \n* __docfony-dev-mongo__ _It will store Mongo Database data files from_ `/data/db`\n* __docfony-dev-mongo-config__ _It will store Mongo Database config data from_ `/data/configdb`\n* __docfony-dev-redis__ _It will store Redis data from_ `/data`\n\n\u003e For development purpose volume for Symfony application is shared with your machine (Host) and is accessible via folder outside of **docfony**, called **project**.\nThis shall become a virtual volume in production\nIn addition to virtual volumes, Docker will also creates a **network** with **bridge** driver\nnamed `docfony_symfony_dev` to make the containers to communicate with each other\n\n### Installation via Composer\nPlease execute make file at the root of Docfony as presented below:\n\n    $ make php\n\nto automatically enter inside the PHP container with tty access (bash), now you can install\nyour symfony application.\n\n    root@2ecca:/var/www#: composer create-project symfony/skeleton project\n\n\u003e**Please Note** Project name must be `project` as illustrated above due to NGINX path configuration.\n\nComposer will download the necessary packages for your Symfony application and now you can view the app via your browser from following URL:\n`http://localhost`, you may also view your application via virtual host domain: `http://docfony.docker`\n\u003e**Please Note** you need to add `docfony.docker` assigned to `127.0.0.1`  on your host machine (Mac/Linux in /etc/hosts and for Windows via Firewall settings)\n\n### Symfony Parameters, Hosts and Ports\nExample of parameters being asked during Symfony installation below:\n```yml\nparameters:\n    database_host: mysql\n    database_port: 3308\n    database_name: symfony\n    database_user: root\n    database_password: null\n    mailer_transport: smtp\n    mailer_host: php\n    mailer_user: null\n    mailer_password: null\n    secret: f0379aa3b94f435c057060d21e7afb10\n```\nYou may use GUI applications to manage your database by specifying `mysql` or `mongo` as a host\nand specified port in `docker-compose.yml`. Please use following to connect to MySQL, Mongo Database\nand Xdebug via your machine:\n\n* __MySQL Database__\n    * Host: _mysql_\n    * Port: _3308_\n* __Mongo Database__\n    * Host: _mongo_\n    * Port: _27017_\n* __Xdebug__\n    * Port: _9001_\n\n\u003e **Please Note** you may also use IP address `127.0.0.1` as a host for each service instead.\n\n\n### Quit and remove the containers\nIn order to quit and remove containers run the following make command:\n\n    $ make down\n\n\n### Local Development\nYou can view and edit your codes via `project` folder outside of `docfony` and change\non your machine will be synchronised with running containers.\n\n\u003e**Please Note** make sure your containers are running while you are making changes to your project to ensure data persistency all across containers with the host machine\n\n\n### Support and Help\nIf you found an issue, please use git issues to report and if you wish to contribute to this project feel free to fork and create a pull request to the develop branch\n\u003e_**Disclaimer:** Please don't use this to deploy in production, this project been built for Symfony enthusiasts to attract more contributors and prospect companies whom wish to give an enterprise level PHP Framework a quick try, without a worry of configuration and installation of required packages_\n\n\n### Credits\nBuilt with :heart: and maintained at beautiful London\n\n\n### License\nRegarding licensing and version of please visit: [Creative Commons License](https://creativecommons.org/licenses/by-sa/4.0/) or read through license file `LICENSE.md` included in the repository.\n\n![CC Attribution-ShareAlike](https://licensebuttons.net/l/by-sa/3.0/88x31.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneg0%2Fdocfony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneg0%2Fdocfony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneg0%2Fdocfony/lists"}