{"id":18907613,"url":"https://github.com/cesurapp/docker-config-loader","last_synced_at":"2026-05-01T04:35:35.117Z","repository":{"id":140300877,"uuid":"172386512","full_name":"cesurapp/docker-config-loader","owner":"cesurapp","description":"Docker container shell config loader","archived":false,"fork":false,"pushed_at":"2019-02-25T01:11:45.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T11:56:39.271Z","etag":null,"topics":["docker","entrypoint","shell"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/cesurapp.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}},"created_at":"2019-02-24T20:29:07.000Z","updated_at":"2019-02-26T08:48:05.000Z","dependencies_parsed_at":"2023-08-29T03:54:03.178Z","dependency_job_id":null,"html_url":"https://github.com/cesurapp/docker-config-loader","commit_stats":null,"previous_names":["cesurapp/docker-config-loader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesurapp%2Fdocker-config-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesurapp%2Fdocker-config-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesurapp%2Fdocker-config-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesurapp%2Fdocker-config-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cesurapp","download_url":"https://codeload.github.com/cesurapp/docker-config-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239891246,"owners_count":19714097,"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","entrypoint","shell"],"created_at":"2024-11-08T09:22:31.479Z","updated_at":"2026-03-05T23:30:21.606Z","avatar_url":"https://github.com/cesurapp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Config Loader\n\nDocker is designed for entrypoint. Creates key=value config store using environment variables. Environment variables are deleted after the config store is created.\n\n## Example Application\nDockerfile:\n```dockerfile\nFROM centos:latest\n\n...\n\n# -----------------------------------------------------------------------------\n# Run Config Loader\n# -----------------------------------------------------------------------------\nCOPY ./loadConfig.sh /loadConfig.sh\nRUN chmod +x /loadConfig.sh\nENTRYPOINT [ \"/loadConfig.sh\" ]\n\n...\nCMD [\"php-fpm\", \"-F\"]\n```\n\nDocker-compose:\n```yaml\nversion: '3'\n\nservices:\n    phpcentos:\n        build: .\n        environment:\n            # PHP Dynamic Configuration\n            - PHP_1=output_buffering:4096\n            - PHP_2=display_errors:Off\n            - PHP_3=max_execution_time:60\n            - PHP_4=max_input_time:60\n            - PHP_5=memory_limit:512M\n            - PHP_6=post_max_size:500M\n            - PHP_7=upload_max_filesize:25M\n            - PHP_8=max_file_uploads:50\n            - PHP_9=log_errors:On\n            - PHP_10=error_log:\"\\/logs\\/php_error.log\"\n            - PHP_11=opcache.enable:1\n            - PHP_12=opcache.max_accelerated_files:75000\n            # PHP-FPM Dynamic Configuration\n            - FPM_1=user:apache\n            - FPM_2=group:apache\n            - FPM_3=listen:127.0.0.1:9000\n            - FPM_4=pm:dynamic\n            - FPM_5=pm.max_children:15\n            - FPM_6=pm.start_servers:6\n            - FPM_7=pm.min_spare_servers:2\n            - FPM_8=pm.max_spare_servers:10\n            - FPM_9=php_admin_value\\[error_log\\]:\"\\/logs\\/php-fpm-error.log\"\n\n            # ... You can increase as much as you want.\n```\nloadConfig.sh:\n```bash\n#!/bin/bash\n\n# Parameters\n# $1 =\u003e Environment Prefix\n# $2 =\u003e Config File Path\n# $3 =\u003e Config Bracer = | : vs..\nfunction loadConfig()\n{\n    ...  \n}\n\n# Load PHP Config\nloadConfig PHP_ /etc/php.d/php.ini =\n# Load PHP-FPM Config\nloadConfig FPM_ /etc/php-fpm.d/www.conf =\n\nexec \"$@\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesurapp%2Fdocker-config-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesurapp%2Fdocker-config-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesurapp%2Fdocker-config-loader/lists"}