-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.41 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
54
55
56
57
58
59
60
61
# ConfigurationOverview for rendering documentation with docker-compose
#
# Examples:
# - make html output:
# docker-compose run --rm html
# - make all output (html, singlehtml, ...):
# docker-compose run --rm all
# - show howto
# docker-compose run --rm howto
#
# More information:
# https://github.com/t3docs/docker-render-documentation/blob/master/README.rst
#
version: '2'
services:
# generate documentation: html only
html:
image: t3docs/render-documentation:latest
volumes:
- ./:/PROJECT:ro
- ./Documentation-GENERATED-temp:/RESULT
command: makehtml
environment:
- HOST_CWD=$PWD
# generate documentation: all output (html, singlehtml, ...)
all:
image: t3docs/render-documentation:latest
volumes:
- ./:/PROJECT:ro
- ./Documentation-GENERATED-temp:/RESULT
command: makeall
environment:
- HOST_CWD=$PWD
# show howto
howto:
image: t3docs/render-documentation:latest
volumes:
- ./:/PROJECT:ro
- ./Documentation-GENERATED-temp:/RESULT
command: show-howto
# show help
help:
image: t3docs/render-documentation:latest
volumes:
- ./:/PROJECT:ro
- ./Documentation-GENERATED-temp:/RESULT
command: --help
# use local Docker image
html-local:
image: render-documentation-local
volumes:
- ./:/PROJECT:ro
- ./Documentation-GENERATED-temp:/RESULT
command: makehtml
environment:
- HOST_CWD=$PWD