{"id":19248170,"url":"https://github.com/cakebake/docker-lnmp","last_synced_at":"2026-04-12T13:43:17.283Z","repository":{"id":80243177,"uuid":"147661778","full_name":"cakebake/docker-lnmp","owner":"cakebake","description":"Docker environment with bundled Linux, Nginx, MariaDB, PHP-FPM","archived":false,"fork":false,"pushed_at":"2018-09-30T12:57:03.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T05:26:12.781Z","etag":null,"topics":["docker","docker-compose","ioncube","linux","locale","mariadb","nginx","php-fpm","phpmyadmin","wordpress","xdebug"],"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/cakebake.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-09-06T11:11:37.000Z","updated_at":"2018-09-30T12:57:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b4ef2d7-30af-44b3-9327-41713ae9b1d1","html_url":"https://github.com/cakebake/docker-lnmp","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/cakebake%2Fdocker-lnmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fdocker-lnmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fdocker-lnmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakebake%2Fdocker-lnmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakebake","download_url":"https://codeload.github.com/cakebake/docker-lnmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240339583,"owners_count":19785957,"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","ioncube","linux","locale","mariadb","nginx","php-fpm","phpmyadmin","wordpress","xdebug"],"created_at":"2024-11-09T18:06:56.179Z","updated_at":"2026-04-12T13:43:17.228Z","avatar_url":"https://github.com/cakebake.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker LNMP\n===========\n\nDocker environment with bundled Linux Nginx MariaDB PHP-FPM environment. For development and production usage.\n\nFeatures\n--------\n\n-\t**PHP-FPM 7.2**\n-\tionCube PHP Loader\n-\tZend OPcache\n-\tXdebug (Set breakpoint in code with function `xdebug_break()`\\)\n-\tComposer\n-\tImagemagick\n-\t**MariaDB** (Container is stateless and data is mapped to `./services/mariadb/data` directory)\n-\tphpMyAdmin\n-\tDefault locale `de_DE.UTF-8`\n-\tDefault localtime `Europe/Berlin`\n\nConfiguration\n-------------\n\n-\tRename `example.env` to `.env` and edit to your needs\n-\tRemove all files and directories from `./htdocs`\n-\tDownload and copy your web project to `./htdocs`\n-\tConfigure your web project with the defined ENV vars (e.g. `getenv('MYSQL_PASSWORD')`)\n\nUsage\n-----\n\n### Docker compose\n\n`@see` https://docs.docker.com/compose/reference/\n\n### Build\n\n```\ndocker-compose build\n```\n\n### Run\n\n```\ndocker-compose up\n```\n\nor\n\n```\ndocker-compose up -d\n```\n\n\u003e Param `-d` runs container in background (detach)\n\n### Bash into\n\n\u003e Replace `docker-lnmp_*` with your container names\n\n```\n$ docker exec -ti docker-lnmp_php_1 /bin/bash\n$ docker exec -ti docker-lnmp_nginx_1 /bin/bash\n```\n\nDatabase backup\n\n```\n$ docker exec docker-lnmp_mariadb_1 sh -c 'exec mysqldump --all-databases -uroot -p\"$MYSQL_ROOT_PASSWORD\"' \u003e /some/path/on/your/host/all-databases.sql\n```\n\n### Stop\n\n```\ndocker-compose down\n```\n\n\u003e To stop all containers AND kill all volumes `docker-compose down --volumes`\n\n### Access\n\nWeb\n\nhttp://localhost:8080/\n\nphpMyAdmin\n\nhttp://localhost:8282/\n\nMariaDB\n\nUsage of ENV variables. For example see `./htdocs/test/env.php` and config section of this page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakebake%2Fdocker-lnmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakebake%2Fdocker-lnmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakebake%2Fdocker-lnmp/lists"}