Docker setup for symfony or other php projects. It currently supports MacOS (docker-sync) and Unix (native docker volumes). This repository currently contains support for PHP 7.2 up to PHP 7.4. Just checkout the needed tag and you're good to go.
Current Specs
- xdebug
- ZSH
- PHP:7.4
- NPM:latest, NVM:0.33.11, NODE:12.18.2 LTS, YARN:latest
- Docker-sync / native docker volumes
Checkout your project into the /www
directory and set the APACHE_DOCUMENT_ROOT
env in the docker-compose file, to match your framework / setup.
Type ./docker.sh
to see a help message for additional commands.
./docker.sh start
./docker.sh stop
./docker.sh ssh
if you connect into the container, i'll have the following aliases:
xdebug-enable
xdebug-disable