{"id":18556409,"url":"https://github.com/vuongxuongminh/docker-helm-symfony","last_synced_at":"2025-04-10T01:31:15.399Z","repository":{"id":52358995,"uuid":"247475932","full_name":"vuongxuongminh/docker-helm-symfony","owner":"vuongxuongminh","description":"Containerize template for Symfony.","archived":false,"fork":false,"pushed_at":"2021-05-01T00:32:00.000Z","size":286,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T12:57:15.552Z","etag":null,"topics":["containerize","docker","docker-compose","helm-chart","kubernetes","php","symfony"],"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/vuongxuongminh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-15T13:52:06.000Z","updated_at":"2024-10-21T12:31:47.000Z","dependencies_parsed_at":"2022-09-07T19:51:29.459Z","dependency_job_id":null,"html_url":"https://github.com/vuongxuongminh/docker-helm-symfony","commit_stats":null,"previous_names":[],"tags_count":8,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuongxuongminh%2Fdocker-helm-symfony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuongxuongminh%2Fdocker-helm-symfony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuongxuongminh%2Fdocker-helm-symfony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vuongxuongminh%2Fdocker-helm-symfony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vuongxuongminh","download_url":"https://codeload.github.com/vuongxuongminh/docker-helm-symfony/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140305,"owners_count":21054275,"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":["containerize","docker","docker-compose","helm-chart","kubernetes","php","symfony"],"created_at":"2024-11-06T21:30:22.720Z","updated_at":"2025-04-10T01:31:10.383Z","avatar_url":"https://github.com/vuongxuongminh.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modern containerize template for Symfony\n\n![Build Status](https://github.com/vuongxuongminh/docker-helm-symfony/actions/workflows/ci.yaml/badge.svg)\n\n## About it\n\nThis is a clean template base on `symfony/skeleton` project template and set of Docker services, include basic Helm chart help you save time and easy to deploy it in your Kubernetes cluster.\n\n## Prerequisites\n\n+ Helm version 3.0+\n+ Docker compose 1.17+\n+ Docker engine 17.09+\n+ Kubernetes cluster 1.14+\n\n## Getting started\n\nStart by downloading [distribution .tar.gz file](https://github.com/vuongxuongminh/docker-helm-symfony/releases), or generate a GitHub repo from this repo. \n\nAfter download and extract, open a terminal, and navigate to the directory containing your project. Run the following command to start all services using Docker Compose:\n\n```shell script\n$ docker-compose pull # Download the latest versions of the pre-built images.\n$ docker-compose run --rm setup # Setup project (first time only).\n$ docker-compose up -d # Running in detached mode\n```\n\nThis starts the following services:\n\n| Name          |           Description                                               | Ports | Environments |\n|---------------|---------------------------------------------------------------------|------ |--------------|\n| fpm           | FastCGI process manager with PHP-FPM, Composer.              | n/a   | all          |\n| nginx         | Reverse proxy handle request with NGINX                        | 80    | all          |\n| setup         | Setup service help run migration \u0026 install Composer package         | n/a   | dev          |\n\nThis results in the following running containers:\n\n```shell script\n$ docker-compose ps\n\n           Name                          Command                  State                   Ports             \n------------------------------------------------------------------------------------------------------------\ndocker-helm-symfony_fpm_1     docker-entrypoint fpm            Up (healthy)                                 \ndocker-helm-symfony_nginx_1   /opt/bitnami/scripts/nginx ...   Up (healthy)   0.0.0.0:80-\u003e8080/tcp, 8443/tcp\ndocker-helm-symfony_setup_1   docker-entrypoint setup          Exit 0 \n```\n\nIf you want to change a PHP version, open `docker-compose.yaml` and add build args:\n\n+ `PHP_VERSION` for change php version (ex: `PHP_VERSION: '7.4'`).\n\nNow you can visiting your Symfony app: http://localhost\n\n## Deploy project into Kubernetes cluster\n\n### Install\n\nFirstly you need to update helm dependencies by running:\n\n```shell script\n$ helm dep update ./helm-chart/\n```\n\nAnd install chart:\n\n```shell script\n$ helm install app ./helm-chart/\n```\n\nThe command deploys your project on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.\n\n### Uninstalling the Chart\n\nTo uninstall/delete the app deployment:\n\n```shell script\n$ helm uninstall app\n```\n\n### Parameters\n\nThe following table lists the configurable parameters of this chart and their default values.\n\n| Parameter                                    | Description                                                                                                                            | Default                                                                                   |\n|----------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| imagePullSecrets                             | Docker registry secret names as an array.                                                                                              | `[]`                                                                                      |\n| global.fpm.image.repository                  | Image repo.                                                                                                                        | `vuongxuongminh/docker-helm-symfony-php`                                                  |\n| global.fpm.image.tag                         | Image tag.                                                                                                                         | `prod`                                                                                    |\n| global.fpm.image.pullPolicy                  | Image pull policy.                                                                                                                         | `prod`                                                                                    |\n| global.fpm.env                               | Use to set `APP_ENV` env in FPM container.                                                                               | `prod`                                                                                    |\n| global.fpm.debug                             | Use to set `APP_DEBUG` env in FPM container.                                                                             | `0`                                                                                       |\n\nSpecify each parameter using the --set key=value[,key=value] argument to helm install. For example,\n\n```shell script\n$ helm install app ./helm-chart \\\n  --set global.fpm.env=prod,global.fpm.debug=1\n```\n\nThe above command sets the environment variables APP_ENV to `prod`, APP_DEBUG to `1`.\n\nAlternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,\n\n```shell script\n$ helm install app ./helm-chart -f values.yaml\n```\n\n\u003e Tip: You can use the default [values.yaml](/helm-chart/values.yaml) and read more Nginx parameters at [here](https://github.com/bitnami/charts/tree/master/bitnami/nginx).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuongxuongminh%2Fdocker-helm-symfony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvuongxuongminh%2Fdocker-helm-symfony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuongxuongminh%2Fdocker-helm-symfony/lists"}