{"id":18924980,"url":"https://github.com/enderandpeter/docker-magento","last_synced_at":"2026-05-04T08:35:37.522Z","repository":{"id":69098149,"uuid":"202898491","full_name":"enderandpeter/docker-magento","owner":"enderandpeter","description":"A docker-compose project for a magento site.","archived":false,"fork":false,"pushed_at":"2019-08-26T16:53:24.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T01:02:18.970Z","etag":null,"topics":["docker","docker-volume","httpd","magento","mysql","php-container"],"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/enderandpeter.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,"zenodo":null}},"created_at":"2019-08-17T15:30:39.000Z","updated_at":"2019-08-26T16:53:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c3bdfed-726a-4a5f-98d2-bdff3f10e142","html_url":"https://github.com/enderandpeter/docker-magento","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enderandpeter/docker-magento","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enderandpeter%2Fdocker-magento","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enderandpeter%2Fdocker-magento/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enderandpeter%2Fdocker-magento/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enderandpeter%2Fdocker-magento/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enderandpeter","download_url":"https://codeload.github.com/enderandpeter/docker-magento/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enderandpeter%2Fdocker-magento/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32600964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["docker","docker-volume","httpd","magento","mysql","php-container"],"created_at":"2024-11-08T11:08:46.992Z","updated_at":"2026-05-04T08:35:37.518Z","avatar_url":"https://github.com/enderandpeter.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento v2 Docker Deployment\n\n## Instructions\n\nCopy the `.env.example` to `.env` and edit it for the environment:\n\n* `COMPOSE_PROJECT_NAME` - The project name. This value will be appended to all of the container and volume names for the deployment.\n* `COMPOSE_FILE` - A colon-delimited list of `yml` files to be used for the deployment. For example, if this value were set to `file1.yml:file2.yml`, it will be like invoking `docker-compose -f file1.yml -f file2.yml`.\n* `IMAGE_NS` - The prefix for the image names\n* `HTTPD_PORT_80` - The host port for the httpd container's port 80\n* `HTTPD_PORT_443` - The host port for the httpd container's port 443\n* `DB_PORT` - The host and container port for the mysql container\n* `SERVER_NAME` - The website's servername\n* `MAGENTO_VOLUME` - Either an absolute path for a bind-mounted volume or the name of a docker volume\n* `PHP_PORT` - The host and container port that php-fpm will listen on\n* `DEPLOY_USER` - The user that the web app commands will run under\n* `WORKDIR` - The root directory of the web application\n\nCopy the `.yml.example` to a `.yml`, edit it for the environment and then add it to the deployment by editing\n\n## The Services\n\n## httpd\n\nThis is the web server that the site will be running from. Just be sure to create a `httpd/ssl/ssl-cert-snakeoil.pem` file that contains the SSL private key followed by the cert data.\n\n### php\n\nThe magento site will be either bind-mounted to this container or deployed via script into a docker volume.\n\nAdd `.ini` files to the `php/ini` folder to have them copied to the php container.\n\n### mysql\n\nThe database container. You can create a `mysql/conf.d/my.cnf` file to change settings, such as running the DB on a different port:\n\n```\n[client]\nport = 3309\n\n[mysqld]\nport = 3309\n```\n# Deploying\n\nOnce everything is ready simply run\n\n    docker-compose up -d\n\nThen go into the php container and run:\n\n    chmod +x bin/magento\n    bin/magento setup:install \\\n    --base-url=https://magento.local \\\n    --base-url-secure=https://magento.local \\    \n    --db-host=magento_db:3309 \\\n    --db-name=magento \\\n    --db-user=magento \\\n    --db-password=magento \\\n    --backend-frontname=admin \\\n    --admin-firstname=Spencer \\\n    --admin-lastname=Williams \\\n    --admin-email=admin@example.com \\\n    --admin-user=admin \\\n    --admin-password=admin123 \\\n    --language=en_US \\\n    --currency=USD \\\n    --timezone=America/Chicago \\\n    --use-rewrites=1 \\\n    --use-secure=1 \\\n    --use-secure-admin=1\n    start.sh\n\nReplace the above arguments with values that are appropriate for the environment.\n\nIf a change is made to a a build context, you can rebuild the image with:\n\n    docker-compose build [service_name]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenderandpeter%2Fdocker-magento","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenderandpeter%2Fdocker-magento","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenderandpeter%2Fdocker-magento/lists"}