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

docker/l3d#99 Add usage of mariadb and mysql as db servers with configurable version

parent 3dfeaac6
Branches
Tags
No related merge requests found
......@@ -82,6 +82,10 @@ class Handler extends BaseHandler {
'version' => $this->env->receiveGlobal('PHP_VERSION', 'PHP version', '7.4'),
'xdebug' => $this->env->receiveGlobal('PHP_DEBUG', 'PHP debug', '0'),
],
'dbserver' => [
'type' => 'mariadb',
'version' => '10.5',
],
'webserver' => [
'type' => 'apache',
'overwriteconfig' => FALSE,
......
......@@ -2,12 +2,17 @@ version: '3'
services:
mariadb:
image: 'wodby/mariadb:10.5'
{% if dbserver.type == 'mariab' %}
image: 'wodby/mariadb:{{ dbserver.version }}'
{% elseif dbserver.type == 'mysql' %}
image: 'mysql/mysql-server:{{ dbserver.version }}'
{% endif %}
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_LOG_CONSOLE: 0
php:
image: 'wodby/drupal-php:{{ php.version }}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment