Ready develop environment for symfony, laravel, Bolt CMS.
Solved local macOS docker performance problem (use mutagen
branch).
Easy on/off APC/OPCache/XDebug.
Run commands from root:
cp .env.dist .env
make up
- nginx
- php
- percona
- smtpserver
- ✓
master
— main branch (php on 9000 port) socket
— branch with php on socketmutagen
— branch with php on socket and all files sync with mutagen (performance docker php resolving)
The alpine image with:
- Nginx
- PHP 7.4 FPM
- exif
- pdo
- bcmath
- pdo_mysql
- zip
- intl
- iconv
- pcntl
- opcache
- acl
- curl
- gettext
- OpenSSL
- PostgreSQL extension
- gd2 with png, jpeg, webp, freetype
- ...etc
- Composer 2
- Percona DB / MySQL
- php.ini override with variables from .env file
- Makefile for quick docker-compose operations
make help
— Show helpmake force
(docker-compose up) — Start all containers foreground with recreationmake up
(docker-compose up --no-recreate) — Start all containers foregroundmake bg
(docker-compose up --no-recreate -d) — Start all containers backgroundmake restart list="php nginx"
(docker-compose up restart) — Restart all/selectted started containersmake stop list=php
(docker-compose stop) — Stop all/selected started containersmake down
(docker-compose down) — Stop & destroy all started containersmake build
(docker-compose build) — Build images & create containersmake dump
— Dump databasemake command "ls -la"
— Run command shell in php containermake logs
— Show logsmake tail
— Tail logsmake shell php
— Run shell for container (see Containers)
www
— for your server files.env
— for full project & docker environment variablesdocker
— config filesdefault
— mounted nginx default confdocker-compose.yml
— main docker-compose configphp
Dockerfile
— for build php imagephp.ini
— override php settingsphp.env
- env for php.ini (for settings on only restart)