{"id":14983734,"url":"https://github.com/codereviewvideos/docker-symfony-mysql-nginx-example","last_synced_at":"2025-04-10T19:03:41.704Z","repository":{"id":76580669,"uuid":"100965917","full_name":"codereviewvideos/docker-symfony-mysql-nginx-example","owner":"codereviewvideos","description":"An example of Docker with Symfony, nginx, and MySQL","archived":false,"fork":false,"pushed_at":"2017-12-01T15:45:28.000Z","size":55,"stargazers_count":14,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T16:44:45.364Z","etag":null,"topics":["docker","docker-example","mysql","symfony","symfony-example-app","symfony3"],"latest_commit_sha":null,"homepage":null,"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/codereviewvideos.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-08-21T15:23:41.000Z","updated_at":"2024-04-12T07:37:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c048c70-f1b7-4e8f-a901-30c22b742fca","html_url":"https://github.com/codereviewvideos/docker-symfony-mysql-nginx-example","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"1b769477b85e3924009b1b6080ef3bc5e031be72"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codereviewvideos%2Fdocker-symfony-mysql-nginx-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codereviewvideos%2Fdocker-symfony-mysql-nginx-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codereviewvideos%2Fdocker-symfony-mysql-nginx-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codereviewvideos%2Fdocker-symfony-mysql-nginx-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codereviewvideos","download_url":"https://codeload.github.com/codereviewvideos/docker-symfony-mysql-nginx-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248279015,"owners_count":21077365,"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-example","mysql","symfony","symfony-example-app","symfony3"],"created_at":"2024-09-24T14:07:50.981Z","updated_at":"2025-04-10T19:03:41.651Z","avatar_url":"https://github.com/codereviewvideos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-symfony-mysql-nginx-example\nAn example of Docker with Symfony, nginx, and MySQL\n\n## Instructions for use\n\n``` language-shell\ngit clone https://github.com/codereviewvideos/docker-symfony-mysql-nginx-example.git\ncd docker-symfony-mysql-nginx-example\n\n# docker user will run as www-data, a member of the www-data group\nsudo chown -R $(whoami):1000 app\n\n# bring up the environment\n# this creates a ./volumes directory in the project root\nmake dev\n\n# we need to sort out some permissions still, so down the environment momentarily\ndocker-compose down\n\n# make the required permissions change to the php volume\nsudo chown -R 1000:1000 volumes/php\n\n# bring the environment back up\nmake dev\n\n# get a terminal session open to the php container\ndocker-compose exec php /bin/bash\n```\n\nFrom here, you should be able to `composer install`:\n\n```\nwww-data@49454f3566f0:~/dev$ composer install\nCannot create cache directory /var/www/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache\nCannot create cache directory /var/www/.composer/cache/files/, or directory is not writable. Proceeding without cache\nLoading composer repositories with package information\nInstalling dependencies (including require-dev) from lock file\nPackage operations: 38 installs, 0 updates, 0 removals\n  - Installing doctrine/lexer (v1.0.1): Downloading (100%)         \n  - Installing doctrine/annotations (v1.2.7): Downloading (100%)         \n  - Installing twig/twig (v1.34.4): Downloading (100%)         \n  - Installing symfony/polyfill-util (v1.4.0): Downloading (100%)         \n  - Installing paragonie/random_compat (v2.0.10): Downloading (100%)         \n  - Installing symfony/polyfill-php70 (v1.4.0): Downloading (100%)         \n  - Installing symfony/polyfill-php56 (v1.4.0): Downloading (100%)         \n  - Installing symfony/polyfill-mbstring (v1.4.0): Downloading (100%)         \n  - Installing symfony/symfony (v3.3.6): Downloading (100%)         \n  - Installing symfony/polyfill-intl-icu (v1.4.0): Downloading (100%)         \n  - Installing psr/simple-cache (1.0.0): Downloading (100%)         \n  - Installing psr/log (1.0.2): Downloading (100%)         \n  - Installing psr/link (1.0.0): Downloading (100%)         \n  - Installing psr/container (1.0.0): Downloading (100%)         \n  - Installing psr/cache (1.0.1): Downloading (100%)         \n  - Installing fig/link-util (1.0.0): Downloading (100%)         \n  - Installing doctrine/inflector (v1.1.0): Downloading (100%)         \n  - Installing doctrine/collections (v1.3.0): Downloading (100%)         \n  - Installing doctrine/cache (v1.6.2): Downloading (100%)         \n  - Installing doctrine/common (v2.6.2): Downloading (100%)         \n  - Installing jdorn/sql-formatter (v1.2.17): Downloading (100%)         \n  - Installing doctrine/doctrine-cache-bundle (1.3.0): Downloading (100%)         \n  - Installing doctrine/dbal (v2.5.13): Downloading (100%)         \n  - Installing doctrine/doctrine-bundle (1.6.8): Downloading (100%)         \n  - Installing doctrine/instantiator (1.0.5): Downloading (100%)         \n  - Installing doctrine/orm (v2.5.6): Downloading (100%)         \n  - Installing incenteev/composer-parameter-handler (v2.1.2): Downloading (100%)         \n  - Installing composer/ca-bundle (1.0.7): Downloading (100%)         \n  - Installing sensiolabs/security-checker (v4.1.1): Downloading (100%)         \n  - Installing sensio/distribution-bundle (v5.0.20): Downloading (100%)         \n  - Installing sensio/framework-extra-bundle (v3.0.26): Downloading (100%)         \n  - Installing monolog/monolog (1.23.0): Downloading (100%)         \n  - Installing symfony/monolog-bundle (v3.1.0): Downloading (100%)         \n  - Installing symfony/polyfill-apcu (v1.4.0): Downloading (100%)         \n  - Installing swiftmailer/swiftmailer (v5.4.8): Downloading (100%)         \n  - Installing symfony/swiftmailer-bundle (v2.6.3): Downloading (100%)         \n  - Installing sensio/generator-bundle (v3.1.6): Downloading (100%)         \n  - Installing symfony/phpunit-bridge (v3.3.6): Downloading (100%)         \nparagonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)\ndoctrine/doctrine-cache-bundle suggests installing symfony/security-acl (For using this bundle to cache ACLs)\nsensio/framework-extra-bundle suggests installing symfony/psr-http-message-bridge (To use the PSR-7 converters)\nmonolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)\nmonolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)\nmonolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))\nmonolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)\nmonolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)\nmonolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)\nmonolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)\nmonolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)\nmonolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)\nmonolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)\nmonolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)\nGenerating autoload files\n\u003e Incenteev\\ParameterHandler\\ScriptHandler::buildParameters\nCreating the \"app/config/parameters.yml\" file\nSome parameters are missing. Please provide them.\ndatabase_host ('%env(MYSQL_HOST)%'): \ndatabase_port ('%env(MYSQL_PORT)%'): \ndatabase_name ('%env(MYSQL_DATABASE)%'): \ndatabase_user ('%env(MYSQL_USER)%'): \ndatabase_password ('%env(MYSQL_PASSWORD)%'): \nmailer_transport (smtp): \nmailer_host ('%env(MAILER_HOST)%'): \nmailer_user ('%env(MAILER_USER)%'): \nmailer_password ('%env(MAILER_PASSWORD)%'): \nmailer_port ('%env(MAILER_PORT)%'): \nmailer_encryption (ssl): \nmailer_auth_mode (login): \nsecret ('%env(SECRET_KEY)%'): \n\u003e Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap\n\n\n\u003e Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache\n\n // Clearing the cache for the dev environment with debug                       \n // true                                                                        \n\n                                                                                \n [OK] Cache for the \"dev\" environment (debug=true) was successfully cleared.    \n                                                                                \n\n\u003e Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets\n\n Trying to install assets as relative symbolic links.\n\n -- -------- ---------------- \n     Bundle   Method / Error  \n -- -------- ---------------- \n\n                                                                                \n [OK] All assets were successfully installed.                                   \n                                                                                \n\n\u003e Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile\n\u003e Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget\nwww-data@49454f3566f0:~/dev$ \n```\n\nYou will only need to do the permissions changes once. After this / subsequent development sessions, just run `make dev`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodereviewvideos%2Fdocker-symfony-mysql-nginx-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodereviewvideos%2Fdocker-symfony-mysql-nginx-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodereviewvideos%2Fdocker-symfony-mysql-nginx-example/lists"}