2016-07-15 03:33:13 +05:30
|
|
|
|
version: '2'
|
|
|
|
|
services:
|
|
|
|
|
testphp:
|
2016-10-03 04:31:21 +05:30
|
|
|
|
container_name: accountelyby_testphp
|
|
|
|
|
build:
|
|
|
|
|
context: ../
|
|
|
|
|
dockerfile: Dockerfile-dev
|
|
|
|
|
depends_on:
|
|
|
|
|
- testdb
|
|
|
|
|
- testredis
|
|
|
|
|
- testrabbit
|
2016-07-15 03:33:13 +05:30
|
|
|
|
volumes:
|
2016-08-09 12:23:05 +05:30
|
|
|
|
- ./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
|
2016-10-03 04:31:21 +05:30
|
|
|
|
environment:
|
|
|
|
|
- YII_DEBUG=true
|
|
|
|
|
- YII_ENV=test
|
|
|
|
|
# Это я потом, когда-нибудь, уберу
|
|
|
|
|
- XDEBUG_CONFIG=remote_host=10.254.254.254
|
|
|
|
|
- PHP_IDE_CONFIG=serverName=docker
|
2016-07-15 03:33:13 +05:30
|
|
|
|
|
|
|
|
|
testdb:
|
2016-10-03 04:31:21 +05:30
|
|
|
|
container_name: accountelyby_testdb
|
|
|
|
|
build: ./../docker/mariadb
|
2016-07-15 03:33:13 +05:30
|
|
|
|
environment:
|
|
|
|
|
MYSQL_ROOT_PASSWORD: ""
|
|
|
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
|
|
|
|
MYSQL_DATABASE: "ely_accounts_test"
|
|
|
|
|
MYSQL_USER: "ely_accounts_tester"
|
|
|
|
|
MYSQL_PASSWORD: "ely_accounts_tester_password"
|
|
|
|
|
|
|
|
|
|
testredis:
|
2016-10-03 04:31:21 +05:30
|
|
|
|
container_name: accountelyby_testredis
|
|
|
|
|
image: redis:3.0-alpine
|
2016-07-15 03:33:13 +05:30
|
|
|
|
|
|
|
|
|
testrabbit:
|
2016-10-03 04:31:21 +05:30
|
|
|
|
container_name: accountelyby_testrabbit
|
|
|
|
|
image: rabbitmq:3.6
|
2016-07-15 03:33:13 +05:30
|
|
|
|
environment:
|
|
|
|
|
RABBITMQ_DEFAULT_USER: "ely-accounts-tester"
|
|
|
|
|
RABBITMQ_DEFAULT_PASS: "tester-password"
|
|
|
|
|
RABBITMQ_DEFAULT_VHOST: "/account.ely.by/tests"
|