-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.26 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
version: '3'
services:
composer:
build:
context: ./config/composer
restart: never
environment:
- COMPOSER_CACHE_DIR=/app/var/cache/composer
volumes:
- .:/app
fpm:
build:
context: ./config/fpm
restart: always
volumes:
- .:/app
- ./config/fpm/conf.d/:/usr/local/etc/php/conf.d/
- ./var/log/xdebug/:/tmp/xdebug/
- ./var/log/xdebug-profiling/:/tmp/xdebug-profiling/
working_dir: /app
nginx:
image: nginx:stable-alpine
ports:
- 8080:80
volumes:
- .:/app
- ./config/nginx/site.conf:/etc/nginx/conf.d/default.conf
- ./var/log/nginx:/var/log/nginx
depends_on:
- fpm
php:
image: php:7.4-cli
restart: never
volumes:
- .:/app
working_dir: /app
phpstan:
image: php:7.4-cli
restart: never
volumes:
- .:/app
working_dir: /app
entrypoint: ./vendor/bin/phpstan
phpunit:
image: php:7.4-cli
restart: never
volumes:
- .:/app
working_dir: /app
entrypoint: ./vendor/bin/phpunit