forked from flipboxfactory/saml-sp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This setup provides craft already configured with a database and the plugin already installed
# Username is admin
# Password is password
version: '3'
services:
test:
build:
context: .
args:
PHP_IMAGE: flipbox/php:8.0-apache
depends_on:
- db
volumes:
- './src:/var/www/html/src'
- './tests:/var/www/html/tests'
environment:
XDEBUG_MODE: coverage
XDEBUG_ON: "yes"
XDEBUG_HOST: "host.docker.internal"
XDEBUG_IDEKEY: "PHPSTORM"
DB_DSN: 'mysql:host=db;dbname=test'
# DB_SERVER: db
DB_USER: root
DB_PASSWORD: password
# DB_DATABASE: test
# DB_DRIVER: mysql
command: php ./vendor/bin/codecept run -vvv --coverage --coverage-html
db:
image: 'mysql:5.7'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
MYSQL_USER: craft
MYSQL_PASSWORD: craft