{"id":13606426,"url":"https://github.com/izniburak/demet","last_synced_at":"2026-02-01T07:32:33.562Z","repository":{"id":43640352,"uuid":"158028379","full_name":"izniburak/demet","owner":"izniburak","description":"Simple and useful LAMP \u0026 LEMP and more stack environments to use on Docker.","archived":false,"fork":false,"pushed_at":"2023-12-03T01:37:54.000Z","size":78,"stargazers_count":100,"open_issues_count":0,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-07T11:44:13.426Z","etag":null,"topics":["docker","docker-compose","lamp","lamp-stack","lemp","lemp-stack","php","php-docker-stack","php-stack"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/izniburak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-11-17T21:57:49.000Z","updated_at":"2024-08-12T19:43:24.000Z","dependencies_parsed_at":"2024-08-01T19:53:29.014Z","dependency_job_id":null,"html_url":"https://github.com/izniburak/demet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fdemet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fdemet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fdemet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fdemet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izniburak","download_url":"https://codeload.github.com/izniburak/demet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248539812,"owners_count":21121237,"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":["docker","docker-compose","lamp","lamp-stack","lemp","lemp-stack","php","php-docker-stack","php-stack"],"created_at":"2024-08-01T19:01:09.046Z","updated_at":"2026-02-01T07:32:33.535Z","avatar_url":"https://github.com/izniburak.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# demet\n\n```\n        _____  ______ __  __ ______ _______ \n      |  __ \\|  ____|  \\/  |  ____|__   __|\n      | |  | | |__  | \\  / | |__     | |   \n      | |  | |  __| | |\\/| |  __|    | |   \n      | |__| | |____| |  | | |____   | |   \n      |_____/|______|_|  |_|______|  |_|   \n  Lightweight LAMP \u0026 LEMP stacks to use on Docker.\n```\n\nSimple, lightweight and useful **LAMP \u0026 LEMP** stacks to use on Docker via Docker Compose. With **PostgreSQL, MongoDB, Redis, RabbitMQ, PhpMyAdmin, PGAdmin and Mongo-Express.** You can generate your environment in whatever way you desire.\n\n| Service       | Container Name   | Default Ports | Version       | Description                      |\n|---------------|------------------|---------------|---------------|----------------------------------|\n| Apache Server | demet-apache     | 80 / 443      | 2.4:alpine    | Apache Web Server                |\n| Nginx Server  | demet-nginx      | 80 / 443      | stable:alpine | Nginx Web Server                 |\n| PHP           | demet-php        | 9000          | 8.1 - 8.2 - 8.3 | PHP-FPM Versions (Default: 8.3)       |\n| MySQL         | demet-mysql      | 3306          | 8.0           | MySQL 8.0       |\n| MariaDb         | demet-mysql      | 3306          | 10.6           | MariaDb 10.6       |\n| PhpMyAdmin    | demet-phpmyadmin | 8080          | latest        | MySQL Web UI                     |\n| PostgreSQL    | demet-pgsql      | 5432          | 12.0          | PostgreSQL 12.0. |\n| PGAdmin       | demet-pgadmin    | 8081          | 8        | PostgreSQL Web UI (dpage/pgadmin4)               |\n| MongoDB       | demet-mongodb    | 27017         | 7        | NoSQL database                   |\n| Mongo-Express | demet-mongoadmin | 8082          | latest        | MongoDB Web UI                   |\n| Redis         | demet-redis      | 6379          | 7.2           | Redis Database                   |\n| RabbitMQ      | demet-rabbitmq   | 5672 / 15672  | 3-management-alpine  | RabbitMQ Message Queue           |\n\nYou can change the image versions of the containers via `.env` file.\n\nDefault docker-compose file includes **PHP 8.3, Apache, MariaDB and PhpMyAdmin** containers.\n\nAlso, host names of all services are demet-`\u003cHOST\u003e`. For example, host name of `demet-mysql` container is `mysql`.\n\nYou can change the prefix of the container names in `.env` file by changing the `DEMET_PREFIX` value. For example; if you change the prefix as `local`, your container names will be `local-php`, `local-mysql`, etc...\n\n## usage\nClone this repo by using following command:\n```bash\ngit clone https://github.com/izniburak/demet.git \u0026\u0026 cd demet\n```\nNow, you must create **.env file** to specify port configuration for the containers you selected. In order to generate **.env file**, you can run following command simply:\n```bash\nmake init\n```\nGreat! **.env** and **docker-compose.yml** files have been generated.\nIf you want to change default ports or configuration,\nyou can edit **.env** file.\n\nThen, configure and generate your docker-compose.yml file as you want.\n\n**NOTE:** If you want to use default stack (PHP \u0026 Apache \u0026 MariaDB) skip the following step.\n```bash\nmake generate\n```\n\nNow, You're ready to build the containers you selected.\nIn order to build the containers, you can use following command:\n```bash\nmake build\n```\nIf everything is okay, you can start to use **Demet!**\nLet's go to http://localhost .\n\nIf you want to enter to PHP container, you can use this command simply instead of `docker exec` command:\n```bash\nmake webserver\n```\n\nThat's all! Happy coding!\n\n## Notes\n- Your project files must be in `./public/` directory.\n\n- You can change `php.ini` settings by editting files in `./docker/php\u003cVERSION\u003e/conf/` directory.\n\n- If you need new extension for PHP, you can update `./docker/php\u003cVERSION\u003e/Dockerfile` file and add a new extension you want.\n\n- You can find configuration files of Webserver which you used in `./docker/apache/` or `./docker/nginx/` directory.\n\n- You can find configuration files of other containers in `./docker/` directory as well.\n\n- **Composer, XDebug and OPCache** are included for PHP. You can use these directly.\n\n- If you want to enter to spesific container, you can use this command:\n```bash\nmake run c=\u003ccontainer-name\u003e\n```\n\n- You can check the List of the containers for your setup:\n```bash\nmake ps\n```\n\n- You can use following commands simply in order to `up` or `down` docker-compose instead of `docker-compose up|down`.\n\nfor UP your containers\n```bash\nmake up\n```\nfor DOWN your containers:\n```bash\nmake down\n```\n\n- If you need to restart all container, you can use this command:\n```bash\nmake restart\n```\n\n- You can access to container logs from `./logs/` directory.\n\n- You can use following command to clean \u0026 delete your **docker-compose** and **.env** files\n```\n$ make clean\n```\n\n- If you have any spesific problem, you can open a new issue on the Github. Because, some version of the docker images couldn't be work correctly depends on the your OS or system arch. For example; to use MySQL 8.x version on Arm based processors, you might need to add `platform: linux/arm64` config in section of the MySQL service at the `docker-compose.yml` file. Because, sometimes it can throw an error when try to use it directly.\n**In summary**, you can try to solve the image/container issues, you can research the solution about them, and maybe you can add the issue with the solutions or open a new PR to fix them.\n\n\n*I try to keep up-to-date the this tool. Please make sure the new changes before update your local clone via `git pull`. Because some changes might cause some conficts.*\n\n## Contributing\nIf you have any advice, let me know please.\n\n1. Fork it ( https://github.com/izniburak/demet/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [izniburak](https://github.com/izniburak) İzni Burak Demirtaş - creator, maintainer\n- [ulaskilic](https://github.com/ulaskilic) - Contributor\n- Mustafa Palavar - Contributor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizniburak%2Fdemet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizniburak%2Fdemet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizniburak%2Fdemet/lists"}