-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (52 loc) · 1.23 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
networks:
app:
services:
app:
build:
context: ./infrastructure/docker
dockerfile: nginx.dockerfile
volumes:
- ./:/usr/share/nginx/html
- ./infrastructure/docker/nginx.conf:/etc/nginx/conf.d/default.conf
command: >
sh -c "chmod -R 777 /usr/share/nginx/html/tmp && nginx -g 'daemon off;'"
depends_on:
- php
ports:
- "8080:80"
networks:
- app
php:
build:
context: ./infrastructure/docker
dockerfile: php.dockerfile
volumes:
- ./:/usr/share/nginx/html
- ./infrastructure/docker/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
networks:
- app
aphiria:
build:
context: ./infrastructure/docker
dockerfile: php.dockerfile
volumes:
- ./:/app
depends_on:
- php
entrypoint: [ 'php', '/app/aphiria' ]
networks:
- app
composer:
build:
context: ./infrastructure/docker
dockerfile: php.dockerfile
volumes:
- ./:/app
depends_on:
- php
environment:
# Necessary so that Composer can tell what version of the app it's running
- COMPOSER_ROOT_VERSION=1.0.0
entrypoint: [ 'composer', '--ignore-platform-reqs' ]
networks:
- app