Skip to content

AlbinCauderlier/CodeIgniter4-Docker-Apache-PHP-MySQL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter4-Docker-Apache-PHP-MySQL

First sources of informations, from 2020

Step 1 - https://avenir.ro/codeigniter-4-using-docker-apache-mysql/

Step 2 - https://avenir.ro/codeigniter-4/xinstall-codeigniter-in-docker-containers/

Install

  1. Clone this git repository

  2. On a terminal at the path of the repository:

a. Building the containers

docker-compose up -d

b. List of the running containers, in order to catch the <name_of_the_web_container>

docker ps 

c. Let's go in the web container

docker exec -it <name_of_the_web_container> bash

In the container terminal:

composer create-project codeigniter4/appstarter
exit
  1. Controls

a. Controls that you access the main page in your browser at http://localhost

b. Controls that you access the database at the TCP-3306 port (MySQL Workbench or HeidiSQL)

Upgrade

PHP upgrades

The PHP version is declared in the /docker/apache/Dockerfile line 1

Currently: 'FROM php:8.2-apache'

MySQL and Apache

The versions are not declared in the docker-compose.yml

=> The latest versions are used for these containers

About

A basic Docker container stack for starting to develop in CodeIgniter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 70.8%
  • Shell 29.2%