-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
49 lines (46 loc) · 1.41 KB
/
compose.yaml
File metadata and controls
49 lines (46 loc) · 1.41 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
services:
php-fpm:
build:
context: .
dockerfile: Dockerfile
target: php-fpm-prod
container_name: dotudash-php-fpm
working_dir: /usr/src/app/public
restart: unless-stopped
nginx:
image: nginx:1.21.0
container_name: dotudash-nginx
working_dir: /usr/src/app/public
restart: unless-stopped
ports:
- 80:80
depends_on:
php-fpm:
condition: service_started # todo switch to `service_healthy`
networks:
default:
aliases:
- www.dotudash.local # used for `render-resume` service
- static.dotudash.local # used for `render-resume` service
render-resume:
# Renders `résumé` web-page into pdf file for download
image: icalialabs/wkhtmltopdf:alpine3.7
container_name: dotudash-render-resume
restart: no
working_dir: /usr/src/app/public/media/main/résumé
depends_on:
nginx: # todo use cgi-fcgi direct invocation with no wait for nginx
condition: service_started
php-fpm:
condition: service_started
entrypoint: [
'wkhtmltopdf', '-s', 'A4', '-O', 'Portrait',
'http://www.dotudash.local/résumé/d8901cd7-d347-46bc-8c72-3147fc5a59e7',
'/usr/src/app/public/media/main/résumé/résumé.pdf'
]
networks:
default:
ipam:
config:
- subnet: ${DOCKER_NETWORK_SUBNET:-172.26.0.0/24}
gateway: ${DOCKER_NETWORK_GATEWAY:-172.26.0.1}