blob: b8f4bbaa235a7b2646e8217f867ce6e4ba382d3e [file] [log] [blame]
version: '2.4'
services:
docsite:
build:
context: .
dockerfile: Dockerfile
container_name: docsite
ports:
- "4000:4000"
volumes:
# We use ../../ when the environment variable COBALT_SRC is not set since
# this file is located two directories under the root of the repository.
- ${COBALT_SRC:-../../}:/cobalt/
docsite-build-only:
container_name: docsite-build-only
environment:
# SITE_DST specifies where the files required to deploy the site should be
# placed, and by default this is under the "out" directory.
- SITE_DST=${SITE_DST:-/cobalt/out/deploy/www}
extends:
service: docsite