blob: 26ed83fcd7b5c318889daac18423570d29d46bbd [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=/cobalt/out/deploy/www
extends:
service: docsite