This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.yaml
69 lines (65 loc) · 1.82 KB
/
docker-compose.yaml
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
64
65
66
67
68
69
# Copyright (c) 2018-2019 Bitwise IO, Inc.
# Copyright 2022 Cargill Incorporated
# Licensed under Creative Commons Attribution 4.0 International License
# https://creativecommons.org/licenses/by/4.0/
version: "3.7"
services:
sawtooth-docs-jekyll:
build:
dockerfile: docker/jekyll.dockerfile
context: .
image: sawtooth-docs-jekyll
container_name: sawtooth-docs-jekyll
working_dir: /srv/jekyll/
ports:
- 4000:4000
volumes:
- $PWD:/srv/jekyll
environment:
- JEKYLL_ENV=${JEKYLL_ENV}
entrypoint: |
bash -c "
rm -rf _site
jekyll serve -H 0.0.0.0 --config ./_config.yml,./_config_dev.yml
"
sawtooth-docs-apache:
container_name: sawtooth-docs-apache
image: sawtooth-docs-apache
build:
dockerfile: docker/sawtooth-docs-apache
context: .
ports:
- 8080:80
volumes:
- .:/project
sawtooth-python-docs:
image: sawtooth-python-docs
build:
dockerfile: docker/python_sdk.dockerfile
context: .
volumes:
- $PWD:/srv/jekyll
entrypoint: |
bash -c "
pydoc3 -w sawtooth_sdk/processor/* \
&& mkdir -p /srv/jekyll/docs/1.2/sdks/python_sdk/processor \
&& cp *.html /srv/jekyll/docs/1.2/sdks/python_sdk/processor \
&& pydoc3 -w sawtooth_signing/* \
&& mkdir -p /srv/jekyll/docs/1.2/sdks/python_sdk/signing \
&& cp *.html /srv/jekyll/docs/1.2/sdks/python_sdk/signing \
"
sawtooth-docs-redoc:
container_name: sawtooth-docs-redoc
image: sawtooth-docs-redoc
build:
dockerfile: docker/sawtooth-docs-redoc
context: .
ports:
- 4001:4001
volumes:
- .:/project
entrypoint: |
bash -c "
cd /project/docs/1.2/
redoc-cli serve openapi.yaml -h 0.0.0.0 -w -p 4001
"