Add Docker and Docker Compose
This commit is contained in:
parent
ebd57a2e69
commit
29d88893fa
11 changed files with 162 additions and 1 deletions
16
web/sites/default/settings.docker.php
Normal file
16
web/sites/default/settings.docker.php
Normal 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$',
|
||||
];
|
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ Encore
|
|||
.cleanupOutputBeforeBuild()
|
||||
.setOutputPath('build/')
|
||||
.setPublicPath('/themes/custom/opdavies/build')
|
||||
.setManifestKeyPrefix('build/')
|
||||
|
||||
.addEntry('app', '@/app.js')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue