35 lines
622 B
YAML
35 lines
622 B
YAML
services:
|
|
testing:
|
|
profiles:
|
|
- testing
|
|
build: .
|
|
container_name: incoviba_tests
|
|
env_file:
|
|
- ${APP_PATH:-.}/.test.env
|
|
- ./.key.env
|
|
volumes:
|
|
- ${APP_PATH:-.}/:/code
|
|
- ./logs/test:/logs
|
|
command: [ '/code/bin/phpunit-watcher', 'watch' ]
|
|
networks:
|
|
- testing
|
|
depends_on:
|
|
- test-db
|
|
|
|
test-db:
|
|
profiles:
|
|
- testing
|
|
image: mariadb:latest
|
|
container_name: incoviba_test_db
|
|
env_file: ${APP_PATH:-.}/.test.db.env
|
|
volumes:
|
|
- test-db:/var/lib/mysql
|
|
networks:
|
|
- testing
|
|
|
|
volumes:
|
|
test-db: {}
|
|
|
|
networks:
|
|
testing: {}
|