Use run.sh
to fetch Drupal 8.1-dev and start containers.
Use docker-compose stop
to stop containers and docker-compose rm
to clean-up.
Local db
directory stores mysql database files and drupal
hold core.
For use drush directly from host machine you can specify next alias
alias dr="cd /path/to/docker-copmose.yml && docker-compose exec web drush"
If you want to add some packages you should:
Example of php7-xdebug
- Create new container folder with own Dockerfile and extend this container from base one.
```
FROM skilldlabs/php:7
MAINTAINER Andy Postnikov <[email protected]>
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
php7-xdebug
```
- Change build reference in docker-compose.yml file
web:
#build: php7/.
# path to your custom container.
build: php7-xdebug/.