├── .gitignore ├── README.md ├── app └── index.php ├── configs └── nginx │ └── default.conf ├── docker-compose.dist.yml ├── php-fpm ├── Dockerfile └── xdebug.ini └── php ├── Dockerfile └── xdebug.ini /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | /docker-compose.yml 3 | /databases/ 4 | /logs/ 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker based LAMP 2 | 3 | LAMP is abbreviate of Linux Apache MySQL/MariaDB PHP. 4 | 5 | That mean complete environment for development on PHP language. 6 | 7 | ## How to use 8 | 9 | Just copy docker-compose.yml from dist example 10 | 11 | cp docker-compose.dist.yml docker-compose.yml 12 | 13 | Then build 14 | 15 | docker-compose build 16 | 17 | And run composition 18 | 19 | docker-compose up -d 20 | 21 | After this you may go to http://localhost and will see the NGINX default 22 | index page. 23 | 24 | Of course you wan to pass your PHP files to this composition, for this you 25 | need overwrite strings like: 26 | 27 | - ./app:/var/www/html 28 | 29 | To your path with sources, eg `- ../my-sources-in-parent-folder:/var/www/html`. 30 | 31 | If you don't like `/var/www/html` path, you may create your own config of 32 | apache and bind it into `php` or if you use fpm based container, then write 33 | config for NGINX and bind it `nginx` container. 34 | 35 | ## Links 36 | 37 | * [Video on YouTube](https://www.youtube.com/watch?v=he-Rps8VcFk) about Docker LAMP 38 | composition (on Russian language) 39 | * [Video on YouTube](https://www.youtube.com/watch?v=qxGlQZIbpHM) about minimal 40 | version of PHP-FPM and xDebug (on Russian language) 41 | * [WIKI page](https://en.wikipedia.org/wiki/LAMP_software_bundle) about LAMP 42 | -------------------------------------------------------------------------------- /app/index.php: -------------------------------------------------------------------------------- 1 |