2016-01-02 19:13:18 +05:30
|
|
|
<?php
|
|
|
|
return [
|
|
|
|
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
|
|
|
'components' => [
|
|
|
|
'cache' => [
|
2016-09-05 20:26:03 +05:30
|
|
|
'class' => yii\redis\Cache::class,
|
|
|
|
'redis' => 'redis',
|
2016-01-02 19:13:18 +05:30
|
|
|
],
|
|
|
|
'db' => [
|
2016-07-17 21:43:40 +05:30
|
|
|
'class' => yii\db\Connection::class,
|
2016-09-16 03:58:28 +05:30
|
|
|
'dsn' => 'mysql:host=db;dbname=' . getenv('MYSQL_DATABASE'),
|
|
|
|
'username' => getenv('MYSQL_USER'),
|
|
|
|
'password' => getenv('MYSQL_PASSWORD'),
|
2016-01-02 19:13:18 +05:30
|
|
|
'charset' => 'utf8',
|
2016-09-21 13:42:40 +05:30
|
|
|
'schemaMap' => [
|
|
|
|
'mysql' => common\db\mysql\Schema::class,
|
|
|
|
],
|
2016-01-02 19:13:18 +05:30
|
|
|
],
|
|
|
|
'mailer' => [
|
2016-07-17 21:43:40 +05:30
|
|
|
'class' => yii\swiftmailer\Mailer::class,
|
2016-01-02 19:13:18 +05:30
|
|
|
'viewPath' => '@common/mail',
|
|
|
|
],
|
2016-01-03 05:48:37 +05:30
|
|
|
'security' => [
|
|
|
|
'passwordHashStrategy' => 'password_hash',
|
2016-02-14 23:20:10 +05:30
|
|
|
],
|
|
|
|
'redis' => [
|
2016-07-17 21:43:40 +05:30
|
|
|
'class' => yii\redis\Connection::class,
|
2016-09-16 03:58:28 +05:30
|
|
|
'hostname' => 'redis',
|
|
|
|
'password' => null,
|
|
|
|
'port' => 6379,
|
|
|
|
'database' => 0,
|
2016-02-14 23:20:10 +05:30
|
|
|
],
|
2016-04-12 03:16:44 +05:30
|
|
|
'amqp' => [
|
2016-09-16 03:58:28 +05:30
|
|
|
'class' => common\components\RabbitMQ\Component::class,
|
|
|
|
'host' => 'rabbitmq',
|
|
|
|
'port' => 5672,
|
|
|
|
'user' => getenv('RABBITMQ_DEFAULT_USER'),
|
|
|
|
'password' => getenv('RABBITMQ_DEFAULT_PASS'),
|
|
|
|
'vhost' => getenv('RABBITMQ_DEFAULT_VHOST'),
|
2016-04-12 03:16:44 +05:30
|
|
|
],
|
2016-09-06 15:26:39 +05:30
|
|
|
'guzzle' => [
|
2016-09-16 03:58:28 +05:30
|
|
|
'class' => GuzzleHttp\Client::class,
|
2016-09-06 15:26:39 +05:30
|
|
|
],
|
2016-01-02 19:13:18 +05:30
|
|
|
],
|
2016-06-16 13:30:16 +05:30
|
|
|
'aliases' => [
|
|
|
|
'@bower' => '@vendor/bower-asset',
|
|
|
|
'@npm' => '@vendor/npm-asset',
|
|
|
|
],
|
2016-01-02 19:13:18 +05:30
|
|
|
];
|