{"id":32993535,"url":"https://github.com/atillay/craftcms3-docker","last_synced_at":"2025-11-13T17:00:57.240Z","repository":{"id":96310139,"uuid":"121738822","full_name":"atillay/craftcms3-docker","owner":"atillay","description":"Get started playing with Craft CMS 3 in a few command lines with Docker","archived":false,"fork":false,"pushed_at":"2020-02-10T19:10:17.000Z","size":63,"stargazers_count":36,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T05:19:57.374Z","etag":null,"topics":["craftcms3","docker","mysql","nginx","php7","phpmyadmin"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/atillay.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}},"created_at":"2018-02-16T10:29:26.000Z","updated_at":"2023-05-12T16:50:12.000Z","dependencies_parsed_at":"2023-03-10T02:16:37.688Z","dependency_job_id":null,"html_url":"https://github.com/atillay/craftcms3-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atillay/craftcms3-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atillay%2Fcraftcms3-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atillay%2Fcraftcms3-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atillay%2Fcraftcms3-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atillay%2Fcraftcms3-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atillay","download_url":"https://codeload.github.com/atillay/craftcms3-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atillay%2Fcraftcms3-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284254164,"owners_count":26973347,"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","status":"online","status_checked_at":"2025-11-13T02:00:06.582Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["craftcms3","docker","mysql","nginx","php7","phpmyadmin"],"created_at":"2025-11-13T11:00:33.065Z","updated_at":"2025-11-13T17:00:57.223Z","avatar_url":"https://github.com/atillay.png","language":"PHP","funding_links":[],"categories":["Resources"],"sub_categories":["Dev Tools"],"readme":"# Craft CMS 3 + Docker\n\u003e Get started playing with Craft CMS 3 in a few command lines with Docker\n\nAbout CraftCMS : https://github.com/craftcms  \nDownload Docker : https://www.docker.com/community-edition#/download\n\n## :rocket: Quickstart\n- Configure env: `$ cp .env.example .env` \n- Start container: `$ docker-compose up -d` \n- Enter container: `$ docker-compose exec php bash` \n    - `$ composer install` \n    - `$ craft install` \n\n| Service      | Path                    |\n| ------------ | ----------------------- |\n| Website      | `http://localhost:8080` | \n| PhpMyAdmin   | `http://localhost:8081` |\n| Mail catcher | `http://localhost:8082` |\n| Logs         | `log/`                  |\n\n:warning: Always run commands from container (ex: `docker-compose exec php craft` or `docker-compose exec php composer require guzzlehttp/guzzle`)\n\n## :up: Craft update process\n- Get the latest version number : https://github.com/craftcms/cms/releases\n- Change `craftcms/cms` version in `composer.json`\n- Start and enter container (cf: Quickstart)\n- Run `$ composer update`\n- Run `$ craft migrate/all`\n\n## :tent: Use a virtual host\n- Run `$ sudo nano /etc/hosts` and add `127.0.0.1   myhost.local`\n- Modify `.env` and set `SITE_URL=myhost.local` + `CRAFT_PORT=80`\n- Run `$ docker-compose up`\n- If it fails make sure no service like Apache is running on port 80 \n\n## :whale: Customize PHP or Nginx image\nThe PHP and Nginx images are host on Docker Hub because first build takes a long time.  \nYou can use volume in `docker-compose.yml` to override files in images  \nThe docker images sources are available : https://github.com/atillay/docker-images/tree/master/craftcms3\n\n## About MySQL credentials\nIf you change mysql credentials in .env you have to re-create mysql container:\n- Database will be deleted, make a dump with PhpMyAdmin\n- Remove db folder  : `$ rm -rf docker/db`\n- Run : `docker-compose up` \n- Re-import your database on PhpMyAdmin\n___\n**Release new version on Docker Hub :**  \n`$ docker build -t atillay/craftcms3-php ./docker/php`  \n`$ docker push atillay/craftcms3-php` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatillay%2Fcraftcms3-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatillay%2Fcraftcms3-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatillay%2Fcraftcms3-docker/lists"}