-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
63 lines (60 loc) · 1.88 KB
/
compose.dev.yaml
File metadata and controls
63 lines (60 loc) · 1.88 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
php-fpm:
build:
context: .
dockerfile: Dockerfile
target: php-fpm-dev
volumes:
- type: bind
read_only: false
source: .
target: /usr/src/app
- type: bind
read_only: false
source: ./var
target: /usr/src/app/var # override data volume from image to binding
environment:
# See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-debug}"
APP_ENV: ${APP_ENV:-dev}
extra_hosts:
# Ensure that host.docker.internal is correctly defined on Linux
- host.docker.internal:host-gateway
tty: true
nginx:
volumes:
- ./docker/nginx/conf.d/dev.conf:/etc/nginx/conf.d/dev.conf:ro
- ./public/bundles:/usr/src/app/public/bundles:ro # vendor assets
- ./public/static:/usr/src/app/public/static:ro # project assets
- ./public/media:/usr/src/app/public/media:ro # project media
- ./public/misc:/usr/src/app/public/misc:ro # project media
environment:
APP_ENV: ${APP_ENV:-dev}
depends_on:
php-fpm:
condition: service_started # todo switch to `service_healthy`
build-frontend:
condition: service_completed_successfully
build-frontend:
build:
context: .
dockerfile: Dockerfile
target: frontend-static
container_name: dotudash-frontend-static
volumes:
- .:/usr/src/app:rw
environment:
NODE_ENV: ${NODE_ENV:-development}
entrypoint: [ "npm", "run", "build" ]
render-resume:
image: icalialabs/wkhtmltopdf:alpine3.7
working_dir: /usr/src/app/public/media/main/résumé
depends_on:
nginx:
condition: service_started
php-fpm:
condition: service_started
build-frontend:
condition: service_completed_successfully
volumes:
- ./public/media/main/résumé:/usr/src/app/public/media/main/résumé:rw