-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.32 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3.7"
services:
postgres:
build: ./docker/postgres
environment:
POSTGRES_USER: newsfeed
POSTGRES_PASSWORD: newsfeed
POSTGRES_DB: newsfeed
php-fpm:
build: ./docker/php
volumes:
- .:/var/www/newsfeed
working_dir: /var/www/newsfeed
depends_on:
- composer
nginx:
image: nginx:1.17.9-alpine
volumes:
- .:/var/www/newsfeed
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- postgres
- php-fpm
- node
node:
image: node:13.12.0-alpine3.11
volumes:
- ./frontend:/var/www/newsfeed/frontend
working_dir: /var/www/newsfeed/frontend
command: /bin/sh -c "yarn install && yarn build && chown -R 1000:1000 /var/www/newsfeed/frontend/dist && yarn test:unit"
environment:
VUE_APP_ENDPOINT: http://localhost:8282/api/v1/
depends_on:
- php-fpm
composer:
build: ./docker/php
command: composer install
volumes:
- .:/var/www/newsfeed
working_dir: /var/www/newsfeed
depends_on:
- postgres
phpunit:
build: ./docker/php
command: vendor/bin/phpunit --coverage-html=storage/coverage
working_dir: /var/www/newsfeed
env_file:
- ./docker/php/env/testing.env
volumes:
- .:/var/www/newsfeed
links:
- composer
- postgres