Coder Social home page Coder Social logo

josesaribeiro / docker-linux-codeigniter-mysql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhishek70/docker-linux-codeigniter-mysql

0.0 0.0 0.0 501 KB

Docker with Linux, CodeIgniter MySQL set up

License: Apache License 2.0

PHP 99.65% HTML 0.32% Dockerfile 0.02% Hack 0.01%

docker-linux-codeigniter-mysql's Introduction

docker-linux-codeigniter-mysql

Docker with Linux, CodeIgniter MySQL set up

Steps for executing :

  1. After downloading/cloning the repository, open the docker-compose.yml file in the and change the following parameters.

    db_data directory will store the MySQL data

    ciapp directory has the CodeIgniter 3.1 source code

    For services => db & services => ciapp, change the path of the volumes directory according to your set up.

  2. Change the MySQL environment variables in docker-compose.yml file if required.

  3. Open the terminal and go to the directory where docker-compose.yml is located and run the below command :

     docker-compose up -d --build
    
  4. Step 3 will download the all the dependencies, install it and set up the docker container. After running the command in step 3, it would start two containers. One for MySQL and another for ciapp. It would also create the ciapp database in MySQL.

  5. Run the below command to get the list of running containers :

     docker ps
    
  6. After running above steps successfully, open the browser and run the below url :

     http://localhost:8000/
    

    The default CodeIgniter landing page would be display which shows that everything is setup perfectly.

  7. References :

    1. https://codeigniter.com/
    2. https://hub.docker.com/_/php/
    3. https://docs.docker.com/

docker-linux-codeigniter-mysql's People

Contributors

abhishek70 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.