forked from daryl-software/dblinker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 945 Bytes
/
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
36
37
composer:
build: config/docker/php/composer
volumes:
- ./composer.json:/scripts/composer.json:rw
- ./composer.lock:/scripts/composer.lock:rw
- ./bin:/scripts/bin:rw
volumes_from:
- vendor
vendor:
build: config/docker/php/vendor
volumes:
- ./vendor/:/scripts/vendor/
behat:
build: config/docker/php/behat
volumes:
- ./behat.yml:/scripts/behat.yml/:ro
- ./src:/scripts/src/:ro
- ./features:/scripts/features/:rw
volumes_from:
- vendor
links:
- mysql
- postgresql
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: db
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: rootpassword
postgresql:
image: postgres:9.4
environment:
POSTGRES_DATABASE: db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_ROOT_PASSWORD: password