forked from docker/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
21 lines (21 loc) · 764 Bytes
/
docker-compose.yml
File metadata and controls
21 lines (21 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
services:
docs:
# By default, docker-compose up --build builds docs for a development
# environment (no Google Analytics, omitting some enterprise redirects,
# etc.
#
# To test a "production" build, override the environment using:
#
# JEKYLL_ENV=production docker-compose up --build
build:
args:
# FIXME: docker-compose should behave the same as the docker CLI here
# and if `JEKYLL_ENV` is not set in the current environment, ignore
# the --build-arg, and use the default that's defined in the Dockerfile.
# Setting a default here as a workaround.
# - JEKYLL_ENV
- JEKYLL_ENV=${JEKYLL_ENV:-development}
context: .
image: docs/docstage
ports:
- "4000:4000"