Yii2 / PHP 7.1 / Apache docker image
Cut down and updated version of codemix/yii2-dockerbase
$ docker build -t <tag> ./
$ docker push <tag>
There is a built version up on DockerHub
# docker-compose.yml
web:
image: zorfling/yii2-docker:php7.1-apache
ports:
- "8080:80"
expose:
- "80"
volumes:
- ./:/var/www/html/
Then
$ docker-compose up web -d
OR
# from your Yii root
$ docker run -it -v $PWD:/var/www/html zorfling/yii2-docker:php7.1-apache