{"id":15934663,"url":"https://github.com/zeta36/docker-magento2-intalled","last_synced_at":"2026-04-11T22:02:36.395Z","repository":{"id":90546494,"uuid":"414195940","full_name":"Zeta36/docker-magento2-intalled","owner":"Zeta36","description":"Docker compose file that is able to deploy and install any Magento 2 version wished in an unattended way","archived":false,"fork":false,"pushed_at":"2021-10-22T12:00:10.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T08:04:50.152Z","etag":null,"topics":["docker","docker-compose","magento2"],"latest_commit_sha":null,"homepage":"","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/Zeta36.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":"2021-10-06T12:07:04.000Z","updated_at":"2021-10-22T12:00:12.000Z","dependencies_parsed_at":"2023-07-18T10:45:54.778Z","dependency_job_id":null,"html_url":"https://github.com/Zeta36/docker-magento2-intalled","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"c6c8df8eed071f4a56989c5443f2ebc86011a538"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeta36%2Fdocker-magento2-intalled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeta36%2Fdocker-magento2-intalled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeta36%2Fdocker-magento2-intalled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zeta36%2Fdocker-magento2-intalled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zeta36","download_url":"https://codeload.github.com/Zeta36/docker-magento2-intalled/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024152,"owners_count":20870940,"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","docker-compose","magento2"],"created_at":"2024-10-07T03:20:30.631Z","updated_at":"2026-04-11T22:02:36.336Z","avatar_url":"https://github.com/Zeta36.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker compose for Magento2 installed in an unattended way\n\n## Docker Environment\n\nTo use the docker environment clone this repo inside a folder structure like this:\n\n```\nsome_directory \u003c- Name is not important\n  |- src \u003c- An empty folder to be used in the automatic installation process\n```\n\nAnd copy this repo's `docker-compose.yml` \u0026 `build.sh` \u0026 `.env` files to the root of the base directory (`some_directory` in the example) so you'll have:\n\n```\nsome_directory \u003c- Name is not important\n  |- src \u003c- An empty folder to be used in the automatic installation process\n  |- docker-compose.yml\n  |- build.sh\n  |- .env\n```\n\nEdit the copy of `.env` and set your tokens in the `COMPOSER_AUTH` environment variable. You can also set the version of Magento you wish to install.\n\nThen run the environment by executing:\n\n```\n$ docker-compose up\n```\n\nfrom the base directory where the copy of `docker-compose.yml` is located.\nThe installation process will take some minutes to be finished. You can follow the status logging with:\n\n```docker logs setup -f```\n\nFinally, Magento 2 with the module installed will be running at `http://localhost:80`.\n\nThe admin panel will be available at `http://localhost:80/admin`. Admin credentials are easy:\n\n```\nUser: admin\nPass: admin123\n```\n\nTo install sample data, with the containers running:\n\n```\n$ docker exec -u root -it web bash\nroot@...:~# cd /app\nroot@...:/app# gosu application php -d memory_limit=-1 ./bin/magento sampledata:deploy\nroot@...:/app# gosu application php -d memory_limit=-1 ./bin/magento setup:upgrade\n```\n\n## Exposing the server to internet\n\nTo expose our local server to internet we can use, for example; the utility Ngrok: https://dashboard.ngrok.com/get-started/setup\n\nOnce we have the external ip created (and before running the docker-compose up) simply edit the .env file and set the MAGENTO_BASE_URL=ip (for example: MAGENTO_BASE_URL=7dd5-80-26-218-151.ngrok.io)\n\nSo, when the installation process finished, instead of accessing to http://localhost:80 we will use: http://ip:80 (for example: https://7dd5-80-26-218-151.ngrok.io).\n\n## Xdebug ready to use\n\nIf you wish to debug your new Magento installation, just simply set the correct values in `.env` and configure your IDE attending to the remote PHP docker container `web`. You should also bind your local source path: `./src` to the docker one: `/app`\n\n## Last notes\n\nPlease, take care when you change in `.env` the MAGENTO_VERSION parameter since you'll have to change probably the PHP_VERSION \u0026 COMPOSER_VERSION ones in order to maintain the compatibility. For example, if you wish the Magento 2.4.3 version you should have:\n\n```\nPHP_VERSION=7.4\nCOMPOSER_VERSION=2.0.14\nMAGENTO_EDITION=community\nMAGENTO_VERSION=2.4.3\n```\nbut if you want to test, let's say, the 2.3.1 version you should have something like this:\n\n```\nPHP_VERSION=7.2\nCOMPOSER_VERSION=1.4.3\nMAGENTO_EDITION=community\nMAGENTO_VERSION=2.3.1\n```\nAnd please, don't forget to copy in `.env` your Magento repository tokens filling the parameters:\n```\nCOMPOSER_AUTH_USERNAME=\nCOMPOSER_AUTH_PASSWORD=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeta36%2Fdocker-magento2-intalled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeta36%2Fdocker-magento2-intalled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeta36%2Fdocker-magento2-intalled/lists"}