/LEMP-docker-codeigniter-starter-kit

Learning, Deubgging, Playing with Codeigniter just one line of command

Primary LanguageHTMLMIT LicenseMIT

LEMP docker starter integrated with Codeigniter

Quick learning, deubgging, playing with Codeigniter just one line of command.

Prerequisite

Windows requires 64bit Windows 10 Pro with Hyper-V available. Please see What to know before you install for a full list of prerequisites.

macOS & Others unix just download and install on docker official site.

Usage

Create and Start Containers

$ docker-compose up -d

If you already docker-compose up -d you can just

$ docker-compose start

Stop Containers

$ docker-compose stop

Stop and remove containers, networks, images, and volumes

$ docker-compose down

Access Codeigniter

After you create and start containers

Website: http://localhost/codeigniter

phpmyadmin: http://localhost/phpmyadmin


Structures

Overall structures

├── mysql
│   └── conf    --- MySQL config
├── nginx
│   ├── conf    --- Nginx configuration folder
│   ├── log     --- Nginx logs folder
│   └── site    --- Store our sites, php scripts
└── phpfpm
    └── conf
        ├── cli --- Php-cli config folder
        └── fpm --- Php-fpm config folder

Networks

Networking in Compose

Containers are talking each other by using container's name, for example if I want to connect phpMyAdmin to sql I just using MySQL container name lemp-mysql

Special Thanks

I was built this project from scratch for a practice with docker and thanks his stureture and idea from nuuneoi https://github.com/nuuneoi/lemp-docker-starter-kit