{"id":21305419,"url":"https://github.com/vinniko/dockertemplate","last_synced_at":"2026-04-06T02:33:58.511Z","repository":{"id":201220989,"uuid":"694662098","full_name":"Vinniko/DockerTemplate","owner":"Vinniko","description":":mage: Docker template project to compose various projects","archived":false,"fork":false,"pushed_at":"2023-09-21T12:56:31.000Z","size":502,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T19:33:52.070Z","etag":null,"topics":["composer","docker","docker-compose","mysql","nginx","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vinniko.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":"2023-09-21T12:51:41.000Z","updated_at":"2023-09-28T11:12:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"feec9eaa-2c4f-4f8f-8b62-2f3dee5f6b52","html_url":"https://github.com/Vinniko/DockerTemplate","commit_stats":null,"previous_names":["vinniko/dockertemplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vinniko/DockerTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FDockerTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FDockerTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FDockerTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FDockerTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vinniko","download_url":"https://codeload.github.com/Vinniko/DockerTemplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vinniko%2FDockerTemplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262632335,"owners_count":23340214,"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":["composer","docker","docker-compose","mysql","nginx","php","symfony"],"created_at":"2024-11-21T16:17:57.682Z","updated_at":"2025-12-30T20:05:37.587Z","avatar_url":"https://github.com/Vinniko.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DockerTemplate (Docker template project to compose various projects)\n\n## Installation\n\nCopy .env from .env.example file and then write your database config (The example is made for mysql):\n\n```bash\ncp .env.example .env\n```\nConfigure nginx host files as app-8081-example in ./docker/hosts :\n\n```bash\n1. Modify app-8081-example.conf or create your file. These are application-specific nginx parameters.\n    - Set 'listen';\n    - Set 'server_name';\n    - Set 'root' of your index file;\n    - Set 'error_log' path on your server;\n    - Set 'access_log' path on your server;\n    - Set '/shared/' -\u003e 'root' path;\n    - Set name of app in '/' -\u003e 'try_files';\n    - Set name of upstream in '@*name*' -\u003e 'fastcgi_pass'; \n2. Modify app.conf. These are main nginx parameters.\n    - Set 'server_name';\n    - Set 'error_log' path;\n    - Set 'access_log' path;\n    - Set 'location' for specific application. This will allow you to do a redirect to the correct application at a specific routing. For example, to the back or to the front.\n```\n\nConfigure docker images:\n\n```bash\n1. Database\n    - Create your database folder in ./docker/images/database/ (as example mysql);\n    - Create Dockerfile;\n    - Configue docker image of your database in Dockerfile by https://hub.docker.com/ ;\n2. Nginx\n    - You can use the current image setup and nginx configuration or customize your own in the folder  ./docker/images/nginx/;\n3. Application area\n    - For example PHP in ./docker/images/php/. Php with mysql, xdebug and redis extentions. There's also a composer.\n```\n\nConfigure projects configs \u0026 environments in ./docker/projects/ :\n\n```bash\n1. The 'example' project was the symfony project, so docker replaces the database connection with the one specified in .env.local.example\n\ncd ./docker/projects/example    \ncp .env.local.example .env.local\n```\n\nConfigure docker-compose.yaml for your projects:\n\n```bash\n1. Configure app_database container for your database;\n2. Configure containers of applications. app_exmaple as example;\n3. Configure app_nginx container;\n```\nRun in terminal:\n\n```bash \ndocker-compose -f docker-compose.yaml up --build --force-recreate\n```\n\n\n\nAll changes made in projects will be automatically pulled into the docker containers. If you change docker configs or images, you need to restart docker compose. \nTo use XDEBUG (only for php projects), you need to configure it in the development area and in the browser. For example, in PHPSTORM and Google Chrome.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinniko%2Fdockertemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinniko%2Fdockertemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinniko%2Fdockertemplate/lists"}