Main container was based on oficial PHP7.1-FPM. Out of the box You will have container with PHP7.1 (including memcached, mongodb, geoip, amqp extensions), supervisord and git onboard.
docker-compose.yml
brings dependencies to next containers:
- mysql
- mongodb
- redis
- memcached
- rabbitmq
-
Install
docker-ce
-
Install
docker-compose
-
Copy
.env.dist
to.env
and change variables as you need -
Generate nginx ssl certificates via
bash scripts/gen_nginx_ssl.sh
-
Copy your ssh keys to
./etc/ssh
to make it possible to pull private repos from inside container -
Run
docker-compose up
To get information about available containers and ports see docker-compose.yml
Simply put your private key under etc/ssh/
Note that You will need to start
docker-compose build
after You will make any changes to configuration
You need to alias your local IP to something else :
- On Mac:
sudo ifconfig lo0 alias 10.254.254.254
- On Linux:
sudo ifconfig lo:1 10.254.254.254 up
in order to use XDebug properly (source).
Add 10.254.254.254
in DBGp Proxy > Host setting.
- IDE key: PHPSTORM
- Host: 10.254.254.254
- Port: 9089