52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
# This is a Docker Compose file for the InfluxData documentation site.
|
|
## Run documentation tests for code samples.
|
|
name: influxdata-docs
|
|
volumes:
|
|
test-content:
|
|
services:
|
|
markdownlint:
|
|
image: davidanson/markdownlint-cli2:v0.13.0
|
|
container_name: markdownlint
|
|
profiles:
|
|
- ci
|
|
- lint
|
|
volumes:
|
|
- type: bind
|
|
source: .
|
|
target: /workdir
|
|
working_dir: /workdir
|
|
build:
|
|
context: .
|
|
vale:
|
|
image: jdkato/vale:latest
|
|
container_name: vale
|
|
profiles:
|
|
- ci
|
|
- lint
|
|
volumes:
|
|
- type: bind
|
|
source: .
|
|
target: /workdir
|
|
working_dir: /workdir
|
|
entrypoint: ["/bin/vale"]
|
|
build:
|
|
context: .
|
|
dockerfile_inline: |
|
|
COPY .ci /src/.ci
|
|
COPY **/.vale.ini /src/
|
|
## Run InfluxData documentation with the hugo development server on port 1313.
|
|
## For more information about the hugomods/hugo image, see
|
|
## https://docker.hugomods.com/docs/development/docker-compose/
|
|
local-dev:
|
|
image: hugomods/hugo:exts-0.123.8
|
|
command: hugo server --bind 0.0.0.0
|
|
ports:
|
|
- 1313:1313
|
|
volumes:
|
|
- type: bind
|
|
source: "$PWD"
|
|
target: /src
|
|
- type: bind
|
|
source: $HOME/hugo_cache
|
|
target: /tmp/hugo_cache
|