accounts/tests/docker-compose.yml
2018-07-11 02:24:05 +03:00

44 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '2'
services:
testphp:
container_name: accountelyby_testphp
image: registry.ely.by/elyby/accounts:dev
build:
context: ../
args:
build_env: dev
depends_on:
- testdb
- testredis
volumes:
- ./..:/var/www/html
- ./.bash_history:/root/.bash_history
environment:
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"
# Это я потом, когда-нибудь, уберу
XDEBUG_CONFIG: "remote_host=10.254.254.254"
PHP_IDE_CONFIG: "serverName=docker"
testdb:
container_name: accountelyby_testdb
image: account_testdb
build: ./../docker/mariadb
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:
container_name: accountelyby_testredis
image: redis:3.0-alpine