{"id":16643658,"url":"https://github.com/josee9988/docker-skeleton-lemp","last_synced_at":"2026-04-11T01:04:03.679Z","repository":{"id":100538054,"uuid":"253063204","full_name":"Josee9988/Docker-Skeleton-LEMP","owner":"Josee9988","description":"LEMP Docker environment for PHP applications (Symfony, Laravel, PHP-like)","archived":false,"fork":false,"pushed_at":"2022-09-19T10:49:53.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T17:29:57.900Z","etag":null,"topics":["composer-project","docker","docker-compose","docker-laravel","docker-machine","docker-symfony","dockerfile","environment","laravel","laravel-framework","lemp","lemp-stack","mysql","mysql-database","nginx","php","phpmyadmin","phpmyadmin-docker","symfony","symfony-application"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Josee9988.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":null},"created_at":"2020-04-04T17:50:07.000Z","updated_at":"2024-01-27T18:02:05.000Z","dependencies_parsed_at":"2023-03-23T00:32:48.075Z","dependency_job_id":null,"html_url":"https://github.com/Josee9988/Docker-Skeleton-LEMP","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FDocker-Skeleton-LEMP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FDocker-Skeleton-LEMP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FDocker-Skeleton-LEMP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josee9988%2FDocker-Skeleton-LEMP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Josee9988","download_url":"https://codeload.github.com/Josee9988/Docker-Skeleton-LEMP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243172144,"owners_count":20247887,"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":["composer-project","docker","docker-compose","docker-laravel","docker-machine","docker-symfony","dockerfile","environment","laravel","laravel-framework","lemp","lemp-stack","mysql","mysql-database","nginx","php","phpmyadmin","phpmyadmin-docker","symfony","symfony-application"],"created_at":"2024-10-12T08:09:15.363Z","updated_at":"2025-12-27T04:09:31.247Z","avatar_url":"https://github.com/Josee9988.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Docker LEMP + PhpMyAdmin**\n\n**Simple docker environment** that allows you to run applications such as `Symfony` `Laravel` or any custom _**PHP**-like_ project.\n\nThis **LEMP + composer** stack also includes **PhpMyAdmin** to allow you to manipulate your data even easier.\n\nIt is also shipped with _vim_, _nano_, _curl_, and many more useful tools!\n\n**[Symfony installation guide](https://github.com/Josee9988/Docker-Skeleton-LEMP/wiki/Symfony-guide)** 🔥|\n**[Laravel installation guide](https://github.com/Josee9988/Docker-Skeleton-LEMP/wiki/Laravel-guide)** 🚀\n\nCheck the **[Wiki](https://github.com/Josee9988/Docker-Skeleton-LEMP/wiki)** for further explanation.\n\nDo you want to help us improve the environment or did you found a bug?\n**[Let us know](https://github.com/Josee9988/Docker-Skeleton-LEMP/issues)**.\n\n---\n\n# **Environment setup**\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/Josee9988/Docker-Skeleton-LEMP.git\n    ```\n    \n2. Go to the cloned project directory:\n\n    ```bash\n    cd Docker-Skeleton-LEMP\n    ```\n\n3. Modify the .env environment variables as you please.\n\n    ```dotenv\n    ###\u003e Docker-Skeleton-LEMP-Config ###\n    MYSQL_DATABASE=skeletondb\n    MYSQL_USER=dev\n    MYSQL_PASSWORD=1234\n    MYSQL_ROOT_PASSWORD=root\n    HTTP_PORT=80\n    PHPMYADMIN_PORT=9000\n    MYSQL_PORT=3306\n    APPLICATION_NAME=skeletonApp\n    ###\u003e Docker-Skeleton-LEMP-Config ###\n    ```\n\n4. **Build** and test the container is successfully working\n\n    ```bash\n    docker-compose up -d\n    ```\n   \n   - When you are done, visit the test page on the following URL: `http://localhost`\n    NOTE: If you change the 'HTTP_PORT' you will have to specify the port at the end of the URL.\n   - Visit the PhpMyAdmin page at: `http://localhost:9000` and log in: (_root/root_ or _dev/1234_)\n   \n5. **Initialize** your Symfony/Laravel/PHP app.\n\n     - Copy the '_Docker-Skeleton-LEMP-Config_' .env config to your clipboard to not lose your configuration.\n     - Create/copy your new **Symfony/Laravel/PHP** files keeping the `/docker/` directory and the `docker-compose.yaml` file.\n     - Add the '_Docker-Skeleton-LEMP-Config_' .env config in your new .env file.\n     \n---\n\n# **Default** port settings\n\n|    **Service**   \t| **Port** \t|        **Path**       \t|\n|:----------------:\t|:--------:\t|:---------------------:\t|\n| Nginx (Your App) \t|    80    \t|    http://localhost   \t|\n|    PhpMyAdmin    \t|   9000   \t| http://localhost:9000 \t|\n|       MySQL      \t|   3306   \t|          N/A          \t|\n\n---\n\n# Connect with the terminal to run commands inside the container\n\nIf you want to run a specific composer or MySQL commands or any kind of command inside the container you can easily do it with:\n\nNOTE: '_skeletonApp_' is the default application name. If you change this value in the .env file make sure to run the commands with your own project name. \n\n- Access MySQL terminal.\n\n```bash\ndocker exec -it skeletonApp-mysql bash # to access MySQL CLI\n```\n\n- Access composer, and your own project.\n\n```bash\ndocker exec -it skeletonApp-phpfpm bash # to run any other command inside the container\n```\n\n---\n\n# Project tree\n\n```text\n.\n├── docker\n│   ├── Dockerfile\n│   ├── mysql\n│   │   └── mysql-data\n│   ├── nginx\n│   │   ├── default.conf\n│   │   └── logs\n│   └── php\n│       ├── logs\n│       └── php-ini-overrides.ini\n├── docker-compose.yaml\n├── LICENSE\n├── public\n│   ├── index.php\n│   └── README.md\n└── README.md\n```\n\n---\n\n# Restart (MySQL) settings/container\n\nIf you should your MySQL environment variables you will have to re-create the docker container.\n\n- Remove all the MySQL data\n\n    ```bash\n    sudo rm -rfv docker/mysql/mysql-data/ \u0026\u0026 mkdir -p docker/mysql/mysql-data\n    ```\n\n- Recreate the container\n\n    ```bash\n    docker-compose up -d --build --force-recreate # will rebuild the container.\n    ```\n- Then, you can restart you can re-run your app as normal.\n\n    ```bash\n    docker-compose up -d\n    ```\n\n---\n\n### Did you enjoy the environment? Help us raise these numbers up!\n\n[![Github followers](https://img.shields.io/github/followers/Josee9988.svg?style=social)]()\n[![Github stars](https://img.shields.io/github/stars/Josee9988/Docker-Skeleton-LEMP.svg?style=social)]()\n[![Github watchers](https://img.shields.io/github/watchers/Josee9988/Docker-Skeleton-LEMP.svg?style=social)]()\n[![Github forks](https://img.shields.io/github/forks/Josee9988/Docker-Skeleton-LEMP.svg?style=social)]()\n\n---\n\n\u003e ⚠️Remember that this docker environment does not guarantee a 100% effectiveness as it is being tested yet,\n\u003e and may have some issue at some point.\n\u003e Use it at your own risk and always do backups of your code.⚠️\n\n_Made with a lot of ❤️❤️ by **[@Josee9988](https://github.com/Josee9988)**_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosee9988%2Fdocker-skeleton-lemp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosee9988%2Fdocker-skeleton-lemp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosee9988%2Fdocker-skeleton-lemp/lists"}