git clone https://github.com/diginova/web-docker.git
docker-compose -p web-docker-yii2 -f yii2.yml up -d
docker-compose -p web-docker-laravel -f laravel.yml up -d
Visit: http://127.0.0.1
docker-compose run php bash
docker-compose -p web-docker-yii2 -f yii2.yml down
or
docker-compose -p web-docker-laravel -f laravel.yml down
- Create new directory for new virtual-host in app directory.
- Copy config file (sites-enabled/default.conf) with new name for new virtual-host in same directory. Configure path and domain.
- Add new domain record to /etc/hosts (like: 127.0.0.1 default)
- Restart docker-compose container (down and up)
- Visit http://127.0.0.1:8080 (server:db / username:root / password:root)