# Dockerize your WordPress Bedrock project ##Copy files Add these files to project root: * Dockerfile * .dockerignore * docker.conf * docker-compose.yml ## Database Change .env to new database (ip to Docker env) ## Hosts Add hosts so that the site will find its way ``` sudo nano /etc/hosts ``` ## Deployment Change deploy with dipwpe ```bash composer require deployer/deployer composer require ekandreas/dipwpe ``` ### Configure deploy params Check for EP_HOST in .env and set it to docker-machine-ip ## Start Docker ``` Run docker-compose up -d ``` ## Stop Docker ``` Run docker-compose stop ``` ## Remove Docker ``` Run docker-compose rm ``` ## Initialization To initialize the environment: ``` dep init development ``` ## Pull production To pull from production: ``` dep pull production ``` ## Deploy To deploy to production: ``` dep deploy production ```