Skip to content

chapagainmanoj/khalti-opencart-docker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 3 commits ahead, 8 commits behind DockerIt:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OpenCart Docker

This repository should make it super simple to run Opencart in docker containers.

Installation

  1. Firstly, create a project folder and place the OpenCart files insde there.

  2. Add the opencart-docker files: - if you are using Git already you could add it as a submodule:

       $ git submodule add https://github.com/DockerIt/opencart-docker.git
    
- if not, either copy the files or clone into the project directory:

        $ git clone https://github.com/DockerIt/opencart-docker.git
  1. It should look a bit like this:

     |-- project-root
     |   |-- opencart-docker
     |   |-- tests
     |   |-- upload
     |   |-- vendor
     |   |-- build.xml
     |   |-- changelog.md
     |   |-- etc...
    
  2. Copy the .env-example to .env and make any changes to the environment variables that you want.

     $ cp .env-example .env
    
  3. Now, in the opencart-docker folder, we want run it and serve Opencart. The simplest way is:

     $ docker-compose up -d apache mysql
    
  4. Finally we need to be able to access the site. access with https://localhost OR. We need to put the docker ip address into the HOSTS file. Simple. Docker is native so open /etc/hosts and add

       127.0.0.1 opencart.dev
    

About

Dockerize Opencart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 61.3%
  • HTML 27.5%
  • Dockerfile 7.9%
  • Shell 3.3%