{"id":15169517,"url":"https://github.com/sankam-nikolya/yii2-docker-template","last_synced_at":"2026-01-21T07:05:11.086Z","repository":{"id":222903652,"uuid":"758599699","full_name":"sankam-nikolya/yii2-docker-template","owner":"sankam-nikolya","description":"Basic template of docker-compose.yml for Yii2 advanced","archived":false,"fork":false,"pushed_at":"2024-06-11T21:14:11.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T06:35:58.506Z","etag":null,"topics":["docker","docker-compose","yii2"],"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/sankam-nikolya.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":"2024-02-16T17:03:18.000Z","updated_at":"2024-09-20T15:08:54.000Z","dependencies_parsed_at":"2024-04-11T11:34:02.653Z","dependency_job_id":"bf3c5dfb-6565-4505-a82c-34188de5a8ff","html_url":"https://github.com/sankam-nikolya/yii2-docker-template","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"656a8b4eab55b3703c3b1f49f93d348cbcbb4a3e"},"previous_names":["sankam-nikolya/yii2-docker-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sankam-nikolya/yii2-docker-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankam-nikolya%2Fyii2-docker-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankam-nikolya%2Fyii2-docker-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankam-nikolya%2Fyii2-docker-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankam-nikolya%2Fyii2-docker-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sankam-nikolya","download_url":"https://codeload.github.com/sankam-nikolya/yii2-docker-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankam-nikolya%2Fyii2-docker-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","yii2"],"created_at":"2024-09-27T07:03:05.657Z","updated_at":"2026-01-21T07:05:11.070Z","avatar_url":"https://github.com/sankam-nikolya.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 Docker Template\n\nBasic template of docker-compose.yml for Yii2 advanced\n\n## How to use\n\n1. Make the necessary changes to `env.example`, it is usually enough to change `APP_NAME`.\n\n\n2. Rename `env.example` to `.env`.\n\n\n3. Change the database connection configuration in the file `common/config/main-local.php` or `environments/dev/common/config/main-local.php`:\n\n```php\n    ...\n    'components' =\u003e [\n        'db' =\u003e [\n            'class' =\u003e \\yii\\db\\Connection::class,\n            'dsn' =\u003e 'mysql:host=mysql;dbname=app-db',\n            'username' =\u003e 'root',\n            'password' =\u003e 'root',\n            'charset' =\u003e 'utf8mb4',\n        ],\n        'mailer' =\u003e [\n            'class' =\u003e \\yii\\symfonymailer\\Mailer::class,\n            'viewPath' =\u003e '@common/mail',\n            'useFileTransport' =\u003e false,\n            'transport' =\u003e [\n                'dsn' =\u003e 'smtp://mailcatcher:1025',\n            ],\n        ],\n        ...\n\n```\n\n\n4. Run docker compose:\n\n```bash\ndocker compose -f docker-compose.yml -p {APP_NAME} -d\n```\n\n\n5. Available domains\n\n- http://{APP_NAME}.localhost - frontend\n- http://admin.{APP_NAME}.localhost - backend\n- http://pma.{APP_NAME}.localhost - phpMyAdmin\n- http://mail.{APP_NAME}.localhost - MailCatcher","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankam-nikolya%2Fyii2-docker-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsankam-nikolya%2Fyii2-docker-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankam-nikolya%2Fyii2-docker-template/lists"}