- Create project directory
mkdir mvc.test
- Go to created directory and create 2 directory.
cd mvc.test
- Clone this repository to env directory
git clone [email protected]:pusachev/mvc.test.git env/
- Clone you repository in src directory
git clone {your repository url} src/
- Go to env/ directory docker-compose.yml and run the command
docker-compose up -d
All configuration contain in ./config directory
You can added or change nginx virtual hosts config
example you can se in mvc.conf
nginx:
container_name: nginx
image: pusachev/docker-nginx:latest
restart: always
links:
- php-fpm
ports:
- 80:80
- 443:443
volumes:
- ../../src:/var/www/current/src
- ./config/nginx/mvc.conf:/etc/nginx/sites-enabled/mvc.conf # your configuration file
You can turn on or off php extension by environment variable.
XDEBUG_ENABLED: 1
REDIS_ENABLED: 1
This extension turned off by default
You can init your database by create_database.sql
For more information please see docker mysql
zcat dump.sql.gz | mysql -h 127.0.0.1 -P 3309 -u root -proot database_name