Skip to content

ApOgEE flavour of Docker Container Setup for CodeIgniter Development

Notifications You must be signed in to change notification settings

ApOgEE/apogee-ci3-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApOgEE Docker Container Setup for Codeigniter 3 Development

I will add docker compose file to simplify my task here.

Install Codeigniter 3

composer create-project codeigniter/framework apogee-phpci3

Clone CI3 Project

Database Setup

Enter mysql docker container

docker exec -it < container > /bin/bash

You will get the root prompt. connect to mysql using command line and enter root password as per docker-compose.yml

mysql -p 

In the mysql prompt, run this to create database and database user.

CREATE SCHEMA namadb;
CREATE USER 'dbuser' IDENTIFIED BY 'passwordkau';
GRANT ALL PRIVILEGES ON `namadb` . * TO 'dbuser';
FLUSH PRIVILEGES;

Backup & Restore

# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql

# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE

About

ApOgEE flavour of Docker Container Setup for CodeIgniter Development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published