-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 937 Bytes
/
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
version: "3.4"
services:
cmd:
build:
context: .
target: prod
image: htmlpdf
volumes:
- .:/usr/src/app
- ~/.fonts:/root/.fonts
example1:
build:
context: .
target: prod
image: htmlpdf
volumes:
- .:/usr/src/app
- ~/.fonts:/root/.fonts
working_dir: /usr/src/app/examples
command: ../htmlpdf.py -i CV_PL.yaml -t CV_PL.html -o CV_PL.pdf
example2:
build:
context: .
target: prod
image: htmlpdf
volumes:
- .:/usr/src/app
- ~/.fonts:/root/.fonts
working_dir: /usr/src/app/examples
command: ../htmlpdf.py -i CV_PL.yaml -i CV_star_ratings.yaml -t CV_star_ratings.html -o CV_star_ratings.pdf
check:
profiles:
- dev-task # not really a service, don't start by default
build:
context: .
target: dev
image: htmlpdf_dev
volumes:
- .:/usr/src/app
- ~/.fonts:/root/.fonts