{"id":15093700,"url":"https://github.com/lerufic/codeigniter-docker","last_synced_at":"2025-04-12T07:42:16.522Z","repository":{"id":68889902,"uuid":"273672053","full_name":"LERUfic/codeigniter-docker","owner":"LERUfic","description":"Docker compose to setup nginx, php and mysql for CodeIgniter '4.0.3'.","archived":false,"fork":false,"pushed_at":"2020-06-21T03:00:14.000Z","size":714,"stargazers_count":19,"open_issues_count":0,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T02:51:13.054Z","etag":null,"topics":["codeigniter","codeigniter4","docker","docker-compose","mysql","nginx","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LERUfic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-20T08:51:09.000Z","updated_at":"2024-02-07T09:09:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4f55255-4e2e-44da-977a-a612ac0eb567","html_url":"https://github.com/LERUfic/codeigniter-docker","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"ac2e146890a2be7466c24de56024694daf552bab"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LERUfic%2Fcodeigniter-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LERUfic%2Fcodeigniter-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LERUfic%2Fcodeigniter-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LERUfic%2Fcodeigniter-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LERUfic","download_url":"https://codeload.github.com/LERUfic/codeigniter-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248536981,"owners_count":21120683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeigniter","codeigniter4","docker","docker-compose","mysql","nginx","php"],"created_at":"2024-09-25T11:24:49.556Z","updated_at":"2025-04-12T07:42:16.504Z","avatar_url":"https://github.com/LERUfic.png","language":"PHP","readme":"# Dockerize Codeigniter\nDocker compose to setup nginx, php and mysql for codeigniter 4.0.3.  \n\n## Directory Structure\n```sh\ncodeigniter-docker\n├── docker\n│   ├── mysql\n│   │   └── based.sql\n│   ├── nginx\n│   │   └── nginx.conf\n│   └── php\n│       └── Dockerfile\n├── docker-compose.yml\n└── reset-db.sh\n```\n## Images\n1. nginx → nginx:latest\n2. php → php:7.4-fpm\n3. mysql → mysql:5.7\n\n## Setup Initial DB  \nCopy your sql file to *docker/mysql* with *based.sql* as a file name.  \n\n## Deployment using Docker\n1. Deploy nginx, php-fpm, and mysql using docker-compose\n    ```bash\n    docker-compose up -d\n    ```\n2. Stop all container\n    ```bash\n    docker stop leru_nginx leru_mysql leru_php_fpm\n    ```\n3. Remove all container\n    ```bash\n    docker rm leru_nginx leru_mysql leru_php_fpm\n    ```\n4. Remove php-fpm image\n    ```bash\n    docker rmi codeigniter-docker_php_fpm\n    ```\n5. Reset mysql data\n    ```bash\n    bash reset-db.sh\n    ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flerufic%2Fcodeigniter-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flerufic%2Fcodeigniter-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flerufic%2Fcodeigniter-docker/lists"}