1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:14:04 +00:00

Dockerize phpunit (#66)

This commit is contained in:
Samuel Štancl 2019-07-12 21:44:26 +02:00 committed by GitHub
parent 13cdc03103
commit dc30354699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 93 additions and 20 deletions

45
docker-compose.yml Normal file
View file

@ -0,0 +1,45 @@
version: '3'
services:
test:
build:
context: .
networks:
- testnet
depends_on:
- mysql
- postgres
- redis
volumes:
- .:/var/www/html
environment:
DOCKER: 1
DB_PASSWORD: password
DB_USERNAME: root
DB_DATABASE: main
TENANCY_TEST_REDIS_HOST: redis
TENANCY_TEST_MYSQL_HOST: mysql
TENANCY_TEST_PGSQL_HOST: postgres
stdin_open: true
tty: true
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
MYSQL_USER: user
MYSQL_PASSWORD: password
networks:
- testnet
postgres:
image: postgres:11
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: main
redis:
image: redis:alpine
networks:
- testnet
networks:
testnet:
driver: bridge