{"id":19438807,"url":"https://github.com/zendyani/docker-symfony5-pgadmin-postgres","last_synced_at":"2025-07-13T07:33:18.593Z","repository":{"id":41400035,"uuid":"278420000","full_name":"zendyani/docker-symfony5-pgadmin-postgres","owner":"zendyani","description":"Docker compose for running symfony project","archived":false,"fork":false,"pushed_at":"2020-07-09T20:15:09.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-24T22:39:40.765Z","etag":null,"topics":["docker","docker-compose","nginx","pgadmin","php7","postgresql","symfony","symfony5"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zendyani.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}},"created_at":"2020-07-09T16:47:18.000Z","updated_at":"2023-02-02T09:06:55.000Z","dependencies_parsed_at":"2022-09-03T15:21:58.317Z","dependency_job_id":null,"html_url":"https://github.com/zendyani/docker-symfony5-pgadmin-postgres","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zendyani/docker-symfony5-pgadmin-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendyani%2Fdocker-symfony5-pgadmin-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendyani%2Fdocker-symfony5-pgadmin-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendyani%2Fdocker-symfony5-pgadmin-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendyani%2Fdocker-symfony5-pgadmin-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zendyani","download_url":"https://codeload.github.com/zendyani/docker-symfony5-pgadmin-postgres/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendyani%2Fdocker-symfony5-pgadmin-postgres/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265105624,"owners_count":23712175,"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-compose","nginx","pgadmin","php7","postgresql","symfony","symfony5"],"created_at":"2024-11-10T15:19:50.776Z","updated_at":"2025-07-13T07:33:18.544Z","avatar_url":"https://github.com/zendyani.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nWith this project we will be able to work on symfony 5 and postgres based project without\ninstalling all the dependency that will help in our tasks, to do so we are going to use docker.\nUsing docker will help a lot but also it will bring some tricky situation that need to be handled.\nI hope with this repo you're life as a symfony developer will be easier.\n\n# Requirements\nTo be able to run the project you'll need docker to be installed, also configure your regular user account to be able to execute docker commands to prevent credential problems.\n\n# Getting started\nAfter installing and configuring docker clone this repo with the following command:\n```\ngit clone https://github.com/zendyani/docker-symfony5-pgadmin-postgres.git\n```\n\n## Configuring the project\nYour docker-compose.yaml use the file .env to provision informations like Posgress credential\nOr pgAdmin creadential so you need to rename the env file to .env and make the neccessary modification.\n\n## Files organisation\n- \"code\" will contain your symfony project code.\n- \"data/postgres\" will contain files concerning posgress container.\n- \"logs\" will contain nginx access and error logs.\n- \"nginx\" will contain nginx configuration files that will be mapped inside nginx container.\n- \"php-fpm\" will contain the Dockerfile used to generate the image with all the requirements\nof a modern symfony app and the php-fpm config file that will be used for the php-fpm container\n\n# Work with symfony\nAfter running docker-compose and all the container started successfully you'll be able to start coding your symfony project, to do so follown the next instructions:\n## Init symfony project:\n```\ndocker-compose run php-fpm symfony new .\n```\nThis instruction will init your codebase inside code directory.\n\n## Install a new composer package:\n```\ndocker-compose run php-fpm symfony composer req package_name\n```\nOf course you can use directly compose instead of symfony binary like the following example:\n\n```\ndocker-compose run php-fpm composer req package_name\n```\n\n## Run symfony commandline \n\n```\ndocker-compose run php-fpm symfony console make:....\n```\n\nAs you can see it's always \"docker-compose run php-fpm\" followed by the command, if you're a docker beginner the first statement means run the command inside php-fpm container, \"php-fpm\" represent the name of the container used in docker-compose.yaml\n\n# More docker commands\n\n```\n# List container created by docker-compose\ndocker-compose ps\n# OR\ndocker ps\n\n# connect to a container\ndocker-compose run container_name /bin/sh\n# OR\ndocker exec -it container_name /bin/sh\n```\n\n# Reset container\nstart by removing data files\n```\nsudo rm -rf database/data/*\n```\nRebuild containers\n```\ndocker-compose up --build\n```\n\n# Help\n[Docker cheatsheet](https://github.com/wsargent/docker-cheat-sheet)\n\n[Php alpine image](https://github.com/codecasts/php-alpine)\n\n[Docker for symfony](http://www.inanzzz.com/index.php/post/isb1/alpine-docker-setup-for-symfony-applications)\n\n# License\n\nThis project is licensed under the MIT License - see the LICENSE.md file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendyani%2Fdocker-symfony5-pgadmin-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzendyani%2Fdocker-symfony5-pgadmin-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendyani%2Fdocker-symfony5-pgadmin-postgres/lists"}