kaka987 / opencart-docker-compose

Deploy opencart by docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Deploy opencart-lnmp(Linux, Nginx, MySQL, PHP5) using docker.

ubuntu 16.04 docker 17.04.0-ce docker-compose 1.13.0

cd /opt/

git clone https://github.com/kaka987/opencart-docker-compose.git

cd opencart-docker-compose

docker-compose up -d

-> You need to check permission of some folders. or chmod -R 777 .

Lnmp from https://github.com/micooz/docker-lnmp

I want to share my ideas and designs about Web-Deploying using Docker with you.

Architecture

architecture

The whole app is divided into three Containers:

  1. Nginx is running in Nginx Container, which handles requests and makes responses.
  2. PHP or PHP-FPM is put in PHP-FPM Container, it retrieves php scripts from host, interprets, executes then responses to Nginx. If necessary, it will connect to MySQL as well.
  3. MySQL lies in MySQL Container,

Our app scripts are located on host, you can edit files directly without rebuilding/restarting whole images/containers.

Build and Run

At first, you should have had Docker and Docker Compose installed.

Without building images one by one, you can make use of docker-compose and simply issue:

$ sudo docker-compose up

For more operations to containers, please refer to:

$ sudo docker-compose --help

Check out your https://<docker-host> and have fun 🍺

Contributors

Micooz micooz@hotmail.com

sndnvaps sndnvaps@gmail.com

License

MIT

About

Deploy opencart by docker-compose

License:MIT License


Languages

Language:PHP 55.4%Language:Smarty 33.8%Language:JavaScript 5.7%Language:CSS 3.4%Language:HTML 1.7%Language:Shell 0.0%Language:Makefile 0.0%