mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Отделены параметры конфигурации для приложения от параметров конфигурации необходимых контейнеров
This commit is contained in:
@@ -23,4 +23,4 @@ modules:
|
||||
username: 'ely-accounts-tester'
|
||||
password: 'tester-password'
|
||||
vhost: '/account.ely.by/tests'
|
||||
queues: ['account-operations']
|
||||
queues: []
|
||||
|
@@ -10,26 +10,9 @@ return [
|
||||
],
|
||||
],
|
||||
'components' => [
|
||||
'db' => [
|
||||
'dsn' => 'mysql:host=testdb;dbname=ely_accounts_test',
|
||||
'username' => 'ely_accounts_tester',
|
||||
'password' => 'ely_accounts_tester_password',
|
||||
],
|
||||
'mailer' => [
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'urlManager' => [
|
||||
'showScriptName' => true,
|
||||
],
|
||||
'redis' => [
|
||||
'hostname' => 'testredis',
|
||||
],
|
||||
'amqp' => [
|
||||
'host' => 'testrabbit',
|
||||
'user' => 'ely-accounts-tester',
|
||||
'password' => 'tester-password',
|
||||
'vhost' => '/account.ely.by/tests',
|
||||
],
|
||||
'security' => [
|
||||
// Для тестов нам не сильно важна безопасность, а вот время прохождения тестов значительно сокращается
|
||||
'passwordHashCost' => 4,
|
||||
|
@@ -11,16 +11,25 @@ services:
|
||||
- testredis
|
||||
- testrabbit
|
||||
volumes:
|
||||
- ./codeception/_output:/var/www/html/tests/codeception/_output
|
||||
- ./codeception/api/_output:/var/www/html/tests/codeception/api/_output
|
||||
- ./codeception/common/_output:/var/www/html/tests/codeception/common/_output
|
||||
- ./codeception/console/_output:/var/www/html/tests/codeception/console/_output
|
||||
- ./..:/var/www/html
|
||||
environment:
|
||||
- YII_DEBUG=true
|
||||
- YII_ENV=test
|
||||
YII_DEBUG: "true"
|
||||
YII_ENV: "test"
|
||||
# DB config
|
||||
DB_HOST: "testdb"
|
||||
DB_DATABASE: "ely_accounts_test"
|
||||
DB_USER: "ely_accounts_tester"
|
||||
DB_PASSWORD: "ely_accounts_tester_password"
|
||||
# Redis config
|
||||
REDIS_HOST: "testredis"
|
||||
# RabbitMQ config
|
||||
RABBITMQ_HOST: "testrabbit"
|
||||
RABBITMQ_USER: "ely-accounts-tester"
|
||||
RABBITMQ_PASS: "tester-password"
|
||||
RABBITMQ_VHOST: "/account.ely.by/tests"
|
||||
# Это я потом, когда-нибудь, уберу
|
||||
- XDEBUG_CONFIG=remote_host=10.254.254.254
|
||||
- PHP_IDE_CONFIG=serverName=docker
|
||||
XDEBUG_CONFIG: "remote_host=10.254.254.254"
|
||||
PHP_IDE_CONFIG: "serverName=docker"
|
||||
|
||||
testdb:
|
||||
container_name: accountelyby_testdb
|
||||
|
Reference in New Issue
Block a user