blob: bc0b6e0ebf1b3c6c3f70038fb92f28ca75505ed1 [file] [log] [blame] [edit]
# Copyright 2021 The Cobalt Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
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