diff --git a/docker-compose.yml b/docker-compose.yml index a95c249bce..7d5ab9d730 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,20 +1,15 @@ services: docs: - # By default, docker-compose up --build builds docs for a development + # By default, docker compose up --build builds docs for a development # environment (no Google Analytics, omitting some enterprise redirects, - # etc. + # etc.) # # To test a "production" build, override the environment using: # - # JEKYLL_ENV=production docker-compose up --build + # 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} + - JEKYLL_ENV context: . image: docs/docstage ports: