forked from shin1x1/independent-core-layer-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.07 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
version: '2'
services:
nginx:
image: nginx:1.12
ports:
- '8000:80'
- '8001:8001'
volumes:
- .:/var/www/html
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/conf.d:/etc/nginx/conf.d
links:
- php-fpm
restart: always
php-fpm:
build: "./docker/php-fpm/"
volumes:
- .:/var/www/html
- ./docker/php-fpm/php.ini:/usr/local/etc/php/conf.d/zzmyphp.ini
- ./docker/php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.d/zzmyphp-fpm.conf
links:
- db
- db-test
restart: always
composer:
image: composer
volumes:
- .:/var/www/html
working_dir: /var/www/html
phpstan:
image: phpstan/phpstan
volumes:
- .:/var/www/html
working_dir: /var/www/html
db:
image: postgres:10-alpine
environment:
- POSTGRES_USER=app
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=app
- LC_ALL=C
db-test:
image: postgres:10-alpine
environment:
- POSTGRES_USER=app
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=app
- LC_ALL=C