FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

walissonhms/codeigniter4-docker: 🐳 PHP Docker Image for CodeIgniter4 development · GitHub

 
 

Latest commit

 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image for CodeIgniter4 development

This repository provides you a development environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.

Basic example to create your container (tested on Ubuntu 18.04 - Docker version 19.03.5, build 633a0ea838):

NOTE: This package is under early development and is not ready for prime-time.

Build Image

create this structure:

codeigniter/
    - conf/apache.conf
    - Dockerfile
    - startScript.sh

Go to the codeigniter folder:

cd codeigniter

build the image:

docker build . -t codeigniter:4.1.1

start the container:

docker container run --publish 80:80 --name ci4 -v /localfolder:/var/www/html codeigniter:4.1.1

Installation

  1. Install docker and docker-compose ;

  2. Copy docker-compose.yml file to your project root path, and edit it according to your needs ;

  3. From your project directory, start up your application by running:

docker-compose up -d
  1. From your project directory, stop your application by running:
docker-compose down --volumes

Contributing

Contributions are welcome! Leave an issue on Github, or create a Pull Request.

Licence

This work is under MIT licence.

About

🐳 PHP Docker Image for CodeIgniter4 development

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL