-
-
Save MervinPraison/b10ab1607c29a57a322f5b2ae165fa16 to your computer and use it in GitHub Desktop.
Revisions
-
Andreas Ek revised this gist
Jan 8, 2016 . 1 changed file with 22 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,8 +31,30 @@ Check for EP_HOST in .env and set it to docker-machine-ip 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 ``` -
Andreas Ek revised this gist
Jan 8, 2016 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ include_once 'vendor/ekandreas/dipwpe/main.php'; env('remote.name',''); env('remote.path','/mnt/persist/www/'); env('remote.ssh','[email protected]'); env('remote.database',''); env('remote.domain','.se'); env('local.domain','.dev'); env('local.is_elastic',true); -
Andreas Ek revised this gist
Jan 8, 2016 . 1 changed file with 16 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,26 +1,37 @@ # 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 ``` ## Initialization To initialize the environment: ``` dep init development -
Andreas Ek revised this gist
Jan 8, 2016 . 1 changed file with 15 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,27 @@ # Dockerize your WordPress Bedrock project Add these files to project root * Dockerfile * .dockerignore * docker.conf * docker-compose.yml Add hosts with sudo nano /etc/hosts Change .env to new database 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 ``` To initialize the environment: ``` dep init development ``` -
Andreas Ek renamed this gist
Jan 8, 2016 . 1 changed file with 4 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,8 @@ Add Dockerfile to project root Add .dockerignore Add docker.conf Add docker-compose.yml Add hosts with sudo nano /etc/hosts Change .env to new database Change deploy with dipwpe -
Andreas Ek revised this gist
Jan 8, 2016 . 3 changed files with 62 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ web: build: . ports: - "80:80" volumes: - ".:/var/www/html" links: - mysqldb:mysqldb mysqldb: image: mysql environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=your-project-database ports: - "3306:3306" elastic: image: elasticsearch ports: - "9200:9200" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <VirtualHost *:80> ServerName intra.dev ServerAdmin webmaster@localhost DocumentRoot /var/www/html/web ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined <Directory /var/www/html> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ Add Dockerfile Add .dockerignore with: * !docker.conf Add docker.conf with Apache-conf Run docker build . in root Add hosts sudo nano /etc/hosts Add docker-compose.yml Change .env to new database Change deploy with dipwpe composer require deployer/deployer composer require ekandreas/dipwpe Configure deploy params! Check for EP_HOST in .env and set it to docker-machine-ip Run docker-compose up -d dep init development -
Andreas Ek revised this gist
Jan 8, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ * !docker.conf -
Andreas Ek created this gist
Jan 8, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ FROM php:5.5-apache MAINTAINER Andreas Ek <[email protected]> RUN a2enmod rewrite RUN apt-get update && apt-get install -y mysql-client libmysqlclient-dev RUN docker-php-ext-install mysqli ADD docker.conf /etc/apache2/sites-enabled/ EXPOSE 80