-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 1 KB
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
38
39
40
41
42
43
44
45
46
version: "3.7"
services:
postgres:
image: postgres:12.1-alpine
volumes:
- ./docker/postgres/init_testing_db.sql:/docker-entrypoint-initdb.d/init_testing_db.sql
environment:
POSTGRES_USER: rest-api
POSTGRES_PASSWORD: rest-api
POSTGRES_DB: rest-api
php-fpm:
build: ./docker/php
volumes:
- .:/var/www/rest-api
working_dir: /var/www/rest-api
nginx:
image: nginx:1.17.7-alpine
volumes:
- .:/var/www/rest-api
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php-fpm
- postgres
composer:
build: ./docker/php
command: composer install
volumes:
- .:/var/www/rest-api
working_dir: /var/www/rest-api
depends_on:
- postgres
phpunit:
build: ./docker/php
command: vendor/bin/phpunit --coverage-html=storage/coverage
working_dir: /var/www/rest-api
env_file:
- ./docker/php/env/testing.env
volumes:
- .:/var/www/rest-api
links:
- composer