2016-07-15 03:33:13 +05:30
|
|
|
|
version: '2'
|
|
|
|
|
services:
|
|
|
|
|
testphp:
|
2016-10-03 04:31:21 +05:30
|
|
|
|
container_name: accountelyby_testphp
|
2018-07-11 04:54:05 +05:30
|
|
|
|
image: registry.ely.by/elyby/accounts:dev
|
2016-10-03 04:31:21 +05:30
|
|
|
|
build:
|
|
|
|
|
context: ../
|
2018-07-11 04:54:05 +05:30
|
|
|
|
args:
|
|
|
|
|
build_env: dev
|
2016-10-03 04:31:21 +05:30
|
|
|
|
depends_on:
|
|
|
|
|
- testdb
|
|
|
|
|
- testredis
|
2016-07-15 03:33:13 +05:30
|
|
|
|
volumes:
|
2016-12-04 18:04:32 +05:30
|
|
|
|
- ./..:/var/www/html
|
2017-09-19 22:36:16 +05:30
|
|
|
|
- ./.bash_history:/root/.bash_history
|
2016-10-03 04:31:21 +05:30
|
|
|
|
environment:
|
2016-12-04 18:04:32 +05:30
|
|
|
|
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"
|
2016-10-03 04:31:21 +05:30
|
|
|
|
# Это я потом, когда-нибудь, уберу
|
2016-12-04 18:04:32 +05:30
|
|
|
|
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
|
2016-11-20 19:05:00 +05:30
|
|
|
|
image: account_testdb
|
2016-10-03 04:31:21 +05:30
|
|
|
|
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
|