docker-compose for development
This commit is contained in:
@@ -1,20 +1,40 @@
|
||||
<?php
|
||||
|
||||
$DB_HOST=getenv('FITNESS_DB_HOST');
|
||||
$DB_NAME=getenv('FITNESS_DB_NAME');
|
||||
$DB_PORT=getenv('FITNESS_DB_PORT');
|
||||
$DB_USERNAME=getenv('FITNESS_DB_USERNAME');
|
||||
$DB_PASSWORD=getenv('FITNESS_DB_PASSWORD');
|
||||
|
||||
|
||||
$MAIL_HOST=getenv('FITNESS_MAIL_HOST');
|
||||
$MAIL_PORT=getenv('FITNESS_MAIL_PORT');
|
||||
$MAIL_USERNAME=getenv('FITNESS_MAIL_USERNAME');
|
||||
$MAIL_PASSWORD=getenv('FITNESS_MAIL_PASSWORD');
|
||||
|
||||
|
||||
return [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'class' => 'yii\db\Connection',
|
||||
'dsn' => 'mysql:host=localhost;dbname=botond_fitness',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
// 'dsn' => 'mysql:host=fitnessadmin.hu;dbname=cutler_prod',
|
||||
'dsn' => "mysql:host=$DB_HOST;dbname=$DB_NAME",
|
||||
'username' => "$DB_USERNAME",
|
||||
'password' => "$DB_PASSWORD",
|
||||
'charset' => 'utf8',
|
||||
],
|
||||
'mailer' => [
|
||||
'class' => 'yii\swiftmailer\Mailer',
|
||||
'viewPath' => '@common/mail',
|
||||
// send all mails to a file by default. You have to set
|
||||
// 'useFileTransport' to false and configure a transport
|
||||
// for the mailer to send real emails.
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'useFileTransport' =>false,
|
||||
'transport' => [
|
||||
'class' => 'Swift_SmtpTransport',
|
||||
'host' => "$MAIL_HOST",
|
||||
'username' => "$MAIL_USERNAME",
|
||||
'password' => "$MAIL_PASSWORD",
|
||||
'port' => "$MAIL_PASSWORD",
|
||||
],
|
||||
],
|
||||
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user