docs-v2/compose.yaml

40 lines
1.1 KiB
YAML

# This is a Docker Compose file for the InfluxData documentation site.
## Run documentation tests for code samples.
services:
test:
image: docs-v2-tests
container_name: docs-v2-tests
profiles:
- test
volumes:
- type: bind
source: ./test
target: /usr/src/app/test
- type: bind
source: ./data
target: /usr/src/app/test/data
- type: bind
source: ./static/downloads
target: /usr/src/app/test/tmp/data
build:
context: .
dockerfile: test.Dockerfile
args:
- SOURCE_DIR=test
- DOCKER_IMAGE=docs-v2-tests
## 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