Add Docker and Docker Compose

This commit is contained in:
Oliver Davies 2021-02-09 12:00:00 +00:00
parent ebd57a2e69
commit 29d88893fa
11 changed files with 162 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<?php
$databases['default']['default'] = [
'driver' => 'mysql',
'host' => 'mysql',
'database' => getenv('MYSQL_DATABASE'),
'username' => getenv('MYSQL_USER'),
'password' => getenv('MYSQL_PASSWORD'),
'port' => '3306',
'prefix' => '',
'collation' => 'utf8mb4_general_ci',
];
$settings['trusted_host_patterns'] = [
'^oliverdavies.docker.localhost$',
];

View file

@ -764,3 +764,6 @@ if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
include $app_root . '/' . $site_path . '/settings.local.php';
}
if (file_exists('/.dockerenv') && file_exists($app_root . '/' . $site_path . '/settings.docker.php')) {
include $app_root . '/' . $site_path . '/settings.docker.php';
}

View file

@ -6,6 +6,7 @@ Encore
.cleanupOutputBeforeBuild()
.setOutputPath('build/')
.setPublicPath('/themes/custom/opdavies/build')
.setManifestKeyPrefix('build/')
.addEntry('app', '@/app.js')