Skip to content
Snippets Groups Projects
Commit 51a82d80 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update to docker4drupal version 2.30

parent 12394916
No related branches found
Tags v0.6.0
No related merge requests found
Pipeline #
...@@ -205,8 +205,15 @@ To overwrite the default settings for the Docker environment, add the relevant p ...@@ -205,8 +205,15 @@ To overwrite the default settings for the Docker environment, add the relevant p
"varnish": { "varnish": {
"enable": 0 "enable": 0
}, },
"redis": {
"version": "4.0"
},
"adminer": {
"version": "4.3"
},
"solr": { "solr": {
"enable": 0 "enable": 0,
"version": "6.6"
}, },
"node": { "node": {
"enable": 0, "enable": 0,
...@@ -230,7 +237,15 @@ To overwrite the default settings for the Docker environment, add the relevant p ...@@ -230,7 +237,15 @@ To overwrite the default settings for the Docker environment, add the relevant p
Other supported values for the PHP version are `5.3`, `5.6` and `7.1`. Other supported values for the PHP version are `5.3`, `5.6` and `7.1`.
Other supported value for the webserver type is `apache`. Other supported value for the webserver type is `apache`.
Supported versions for `nginx`: `1.13`, `1.12`, `1.10`
Other supported value for the Redis version is `3.2`.
Other supported value for the Adminer version is `4.2`.
Other supported values for the Solr version are `6.5`, `6.4`, `6.3`, `5.5` and `5.4`.
Once you've changed those values, run `composer update` and the environment will be re-configured. The next time you start your Docker environment those new values will be used. Once you've changed those values, run `composer update` and the environment will be re-configured. The next time you start your Docker environment those new values will be used.
......
<?php <?php
/**
* @file
* Contains \LakeDrops\Docker4Drupal\Handler.
*/
namespace LakeDrops\Docker4Drupal; namespace LakeDrops\Docker4Drupal;
use Composer\Package\PackageInterface; use Composer\Package\PackageInterface;
...@@ -117,7 +112,7 @@ class Handler { ...@@ -117,7 +112,7 @@ class Handler {
$settingsPath = 'settings/default'; $settingsPath = 'settings/default';
} }
// Provide all the requiired files // Provide all the required files
$twig_loader = new \Twig_Loader_Array([]); $twig_loader = new \Twig_Loader_Array([]);
$twig = new \Twig_Environment($twig_loader); $twig = new \Twig_Environment($twig_loader);
$options['webRoot'] = $webRoot . '/'; $options['webRoot'] = $webRoot . '/';
...@@ -205,18 +200,25 @@ class Handler { ...@@ -205,18 +200,25 @@ class Handler {
'version' => '8', 'version' => '8',
], ],
'php' => [ 'php' => [
'version' => '7.0',# 5.3|5.6|7.1 'version' => '7.0',
'xdebug' => 1, 'xdebug' => 1,
], ],
'webserver' => [ 'webserver' => [
'type' => 'nginx',# apache 'type' => 'nginx',
'version' => '1.13', 'version' => '1.13',
], ],
'varnish' => [ 'varnish' => [
'enable' => 0, 'enable' => 0,
], ],
'redis' => [
'version' => '4.0',
],
'adminer' => [
'version' => '4.3',
],
'solr' => [ 'solr' => [
'enable' => 0, 'enable' => 0,
'version' => '6.6',
], ],
'node' => [ 'node' => [
'enable' => 0, 'enable' => 0,
......
<?php <?php
/**
* @file
* Contains LakeDrops\Docker4Drupal\Plugin.
*/
namespace LakeDrops\Docker4Drupal; namespace LakeDrops\Docker4Drupal;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
$aliases['dev'] = array( $aliases['dev'] = array(
'root' => '/var/www/html/{{ webRoot }}', 'root' => '/var/www/html/{{ webRoot }}',
'uri' => '{{ projectname }}.docker.localhost', 'uri' => '{{ projectname }}.docker.localhost:8000',
); );
$aliases['live'] = array( $aliases['live'] = array(
......
...@@ -2,7 +2,7 @@ version: "2" ...@@ -2,7 +2,7 @@ version: "2"
services: services:
mariadb: mariadb:
image: 'wodby/mariadb:10.1-2.3.3' image: 'wodby/mariadb:10.1'
environment: environment:
MYSQL_ROOT_PASSWORD: password MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal MYSQL_DATABASE: drupal
...@@ -10,9 +10,14 @@ services: ...@@ -10,9 +10,14 @@ services:
MYSQL_PASSWORD: drupal MYSQL_PASSWORD: drupal
php: php:
image: 'wodby/drupal-php:{{ php.version }}-2.4.3' image: 'wodby/drupal-php:{{ php.version }}'
environment: environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025 PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
DB_HOST: mariadb
DB_USER: drupal
DB_PASSWORD: drupal
DB_NAME: drupal
DB_DRIVER: mysql
{% if php.xdebug %} {% if php.xdebug %}
PHP_XDEBUG: 1 PHP_XDEBUG: 1
PHP_XDEBUG_DEFAULT_ENABLE: 1 PHP_XDEBUG_DEFAULT_ENABLE: 1
...@@ -29,13 +34,19 @@ services: ...@@ -29,13 +34,19 @@ services:
{{ webserver.type }}: {{ webserver.type }}:
{% if webserver.type == 'nginx' %} {% if webserver.type == 'nginx' %}
image: 'wodby/drupal-nginx:{{ drupal.version }}-{{ webserver.version }}-2.4.2' image: 'wodby/drupal-nginx:{{ drupal.version }}-{{ webserver.version }}'
{% elseif webserver.type == 'apache' %} {% elseif webserver.type == 'apache' %}
image: 'wodby/drupal-apache:2.4-1.0.2' image: 'wodby/drupal-apache:2.4'
{% endif %} {% endif %}
depends_on: depends_on:
- php - php
environment: environment:
{% if webserver.type == 'nginx' %}
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
{% elseif webserver.type == 'apache' %}
APACHE_LOG_LEVEL: debug
{% endif %}
{{ webserver.type|upper }}_BACKEND_HOST: php {{ webserver.type|upper }}_BACKEND_HOST: php
{{ webserver.type|upper }}_SERVER_ROOT: /var/www/html/{{ webRoot }} {{ webserver.type|upper }}_SERVER_ROOT: /var/www/html/{{ webRoot }}
volumes: volumes:
...@@ -47,7 +58,7 @@ services: ...@@ -47,7 +58,7 @@ services:
{% if varnish.enable %} {% if varnish.enable %}
varnish: varnish:
image: 'wodby/drupal-varnish:4.1-2.1.2' image: 'wodby/drupal-varnish:4.1'
depends_on: depends_on:
- {{ webserver.type }} - {{ webserver.type }}
environment: environment:
...@@ -61,7 +72,16 @@ services: ...@@ -61,7 +72,16 @@ services:
{% endif %} {% endif %}
redis: redis:
image: 'wodby/redis:3.2-2.1.2' image: 'wodby/redis:{{ redis.version }}'
adminer:
image: 'wodby/adminer:{{ adminer.version }}'
environment:
ADMINER_SALT: adminer-salt
labels:
- 'traefik.backend={{ projectname }}_adminer_1'
- 'traefik.port=9000'
- 'traefik.frontend.rule=Host:adminer.{{ projectname }}.docker.localhost'
pma: pma:
image: 'phpmyadmin/phpmyadmin' image: 'phpmyadmin/phpmyadmin'
...@@ -78,7 +98,7 @@ services: ...@@ -78,7 +98,7 @@ services:
{% if solr.enable %} {% if solr.enable %}
solr: solr:
image: 'wodby/drupal-solr:{{ drupal.version }}-6.6-2.2.0' image: 'wodby/drupal-solr:{{ drupal.version }}-{{ solr.version }}'
environment: environment:
SOLR_HEAP: 1024m SOLR_HEAP: 1024m
labels: labels:
...@@ -96,7 +116,7 @@ services: ...@@ -96,7 +116,7 @@ services:
{% if node.enable %} {% if node.enable %}
nodejs: nodejs:
image: 'wodby/drupal-node:1.0-1.0.0' image: 'wodby/drupal-node:1.0'
environment: environment:
NODE_SERVICE_KEY: '{{ node.key }}' NODE_SERVICE_KEY: '{{ node.key }}'
labels: labels:
...@@ -123,7 +143,7 @@ services: ...@@ -123,7 +143,7 @@ services:
{% if memcached.enable %} {% if memcached.enable %}
memcached: memcached:
image: 'wodby/memcached:1.4-2.0.0' image: 'wodby/memcached:1.4'
{% endif %} {% endif %}
{% if rsyslog.enable %} {% if rsyslog.enable %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment