No Description

Bachir Soussi Chiadmi cfe4f07c51 added full instruction in readme 6 years ago
base_d7 f1f25d080d mysql is working 6 years ago
log f1f25d080d mysql is working 6 years ago
nginx 66457e6eb2 php 5.6-fpm is working 6 years ago
php a692fff233 added drush to php image + gd + php-custom.ini, updated readme for reverse proxy with apache 6 years ago
.env f1f25d080d mysql is working 6 years ago
.gitignore f1f25d080d mysql is working 6 years ago
README.md cfe4f07c51 added full instruction in readme 6 years ago
docker-compose.yml a692fff233 added drush to php image + gd + php-custom.ini, updated readme for reverse proxy with apache 6 years ago

README.md

MateriO 7.x

MateriO Base powered by druapl 7 docker environement

install docker

sudo pacman -S docker docker-compose docker-machine

clone this repos

git clone -o figli https://figureslibres.io/gogs/bachir/docker-materio.git

clone drupal 7 materio base

cd docker-materio
git clone -o figli https://figureslibres.io/gogs/bachir/materio-base-d7.git base_d7

get the sites/default contents

setup /sites/default/settings.php

reverse proxy

<Virtualhost *:80>
   ServerName dev.materio.com
   ProxyPass / http://127.0.0.1:81/
   ProxyPassReverse / http://127.0.0.1:81/
   ProxyRequests Off
</Virtualhost>
<Virtualhost *:80>
   ServerName dev.phpmyadmin.materio.com
   ProxyPass / http://127.0.0.1:8080/
   ProxyPassReverse / http://127.0.0.1:8080/
   ProxyRequests Off
</Virtualhost>

build

sudo docker-compose build

run

sudo docker-compose run -d

drush

log into php container

sudo docker exec -it materio_php_1 bash

once inside the php container in /var/www/html you can use drush as usual

mysql

copy your db backup into the mysql container

sudo docker cp your-db-file.sql materio_mysql_1:/root/

log into mysql container

sudo docker exec -it materio_php_1 bash

once inside the mysql container you can use mysql command to create and load the db with your file

sources

https://www.ostraining.com/blog/drupal/docker/

http://tech.osteel.me/posts/2017/01/15/how-to-use-docker-for-local-web-development-an-update.html

https://mmenozzi.github.io/2016/01/22/php-web-development-with-docker/

https://dzone.com/articles/continuous-drupal-maintaining-a-drupal-website-wit