{"id":15508956,"url":"https://github.com/byjg/docker-opencart","last_synced_at":"2025-07-07T12:07:56.478Z","repository":{"id":71043546,"uuid":"160298705","full_name":"byjg/docker-opencart","owner":"byjg","description":"Opencart docker image prepared for production environment with volume persistent","archived":false,"fork":false,"pushed_at":"2018-12-08T21:27:26.000Z","size":185,"stargazers_count":12,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T02:38:12.301Z","etag":null,"topics":["docker","docker-image","opencart","opencart-3x"],"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/byjg.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":"2018-12-04T04:48:06.000Z","updated_at":"2024-03-15T14:18:19.000Z","dependencies_parsed_at":"2023-03-09T09:15:55.361Z","dependency_job_id":null,"html_url":"https://github.com/byjg/docker-opencart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byjg/docker-opencart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-opencart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-opencart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-opencart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-opencart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byjg","download_url":"https://codeload.github.com/byjg/docker-opencart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-opencart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264075632,"owners_count":23553509,"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-image","opencart","opencart-3x"],"created_at":"2024-10-02T09:40:46.382Z","updated_at":"2025-07-07T12:07:56.079Z","avatar_url":"https://github.com/byjg.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Opencart Docker Image\n\n[![Opensource ByJG](https://img.shields.io/badge/opensource-byjg.com-brightgreen.svg)](http://opensource.byjg.com)\n[![Build Status](https://travis-ci.org/byjg/docker-opencart.svg?branch=master)](https://travis-ci.org/byjg/docker-opencart)\n\nOpencart docker image prepared for production environment with volume persistent\n\nFeatures:\n- Persist volume with images and setup;\n- Two images - one for install and other for running in production\n\n# Tags\n\n- Run Production Environment: byjg/opencart:3.0.2.0, byjg/opencart:lastest\n- Run Installer (First time): byjg/opencart:3.0.2.0-installer\n\n# Preparing Network\n\nCreate a local directory to store your opencart data:\n\n```bash\n# Create a network\ndocker network create oc\n```\n\n# Running Opencart\n\nAfter you setup the volume you can create the MySQL and the Opencart instance:\n\n```bash\n# Create a container mysql.\n# Please do the necessary adjustments here\n# More info: https://hub.docker.com/_/mysql\ndocker run -d --rm --name mysql \\\n     --network oc \\\n     -e MYSQL_ROOT_PASSWORD=password \\\n     -v $PWD/opencart/mysql:/var/lib/mysql \\\n     mysql:5.7\n\n# Run the Opencart\ndocker run -d --rm --name opencart \\\n    --network oc \\\n    -p 80:80 \\\n    -v $PWD/opencart/storage:/data \\\n    -v $PWD/opencart/admin_controller_extension:/var/www/html/admin/controller/extension \\\n    -v $PWD/opencart/admin_language:/var/www/html/admin/language \\\n    -v $PWD/opencart/admin_model_extension:/var/www/html/admin/model/extension \\\n    -v $PWD/opencart/admin_view_image:/var/www/html/admin/view/image \\\n    -v $PWD/opencart/admin_view_javascript:/var/www/html/admin/view/javascript \\\n    -v $PWD/opencart/admin_view_stylesheet:/var/www/html/admin/view/stylesheet \\\n    -v $PWD/opencart/admin_view_template_extension:/var/www/html/admin/view/template/extension \\\n    -v $PWD/opencart/catalog_controller_extension:/var/www/html/catalog/controller/extension \\\n    -v $PWD/opencart/catalog_language:/var/www/html/catalog/language \\\n    -v $PWD/opencart/catalog_model_extension:/var/www/html/catalog/model/extension \\\n    -v $PWD/opencart/catalog_view_javascript:/var/www/html/catalog/view/javascript \\\n    -v $PWD/opencart/catalog_view_theme:/var/www/html/catalog/view/theme \\\n    -v $PWD/opencart/system_config:/var/www/html/system/config \\\n    -v $PWD/opencart/system_library:/var/www/html/system/library \\\n    -v $PWD/opencart/image_catalog:/var/www/html/image/catalog \\\n    byjg/opencart:3.0.2.0-installer\n```\n\nThe first time you'll be in the installation process. The database name should be `mysql.oc`. Just to understand, \nthe `mysql` is the name of the container and `oc` is the network. \n\n![Install](install_01.jpg)\n\n\nAfter finish the install please access the admin area. You'll receive a \"Important Security Notification\". Please\nchoose \"Automatically Move\" to the directory \"/data/\" as you can see below:\n\n![Install](install_02.jpg)\n\nOK. \n\nNow you won't lose your data saved in the opencart even if you stop and remove the containers. \n\n# Running in Production\n\nOnce you finish the setup and your store is running successfully you can stop the opencart container and start a new container\nfrom image `byjg/opencart:3.0.2.0` with the same parameters used above.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjg%2Fdocker-opencart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyjg%2Fdocker-opencart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjg%2Fdocker-opencart/lists"}