diff --git a/docker-compose/examples/hashicorpvault/README.md b/docker-compose/examples/hashicorpvault/README.md index 76a5127..df406df 100644 --- a/docker-compose/examples/hashicorpvault/README.md +++ b/docker-compose/examples/hashicorpvault/README.md @@ -18,12 +18,6 @@ export COMPOSE_OVERRIDE="${COMPOSE_DIR%/}"'/docker-compose.override.yml' export COMPOSE_ENV= ``` -## Build - -``` -docker compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --file "${COMPOSE_OVERRIDE}" --env-file "${COMPOSE_ENV}" --profile 'build' build -``` - ## Context On your deployment machine create the necessary Docker context to connect to and control the Docker daemon on whatever target host you'll be using, for example: @@ -31,6 +25,12 @@ On your deployment machine create the necessary Docker context to connect to and docker context create fully.qualified.domain.name --docker 'host=ssh://root@fully.qualified.domain.name' ``` +## Build + +``` +docker compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --file "${COMPOSE_OVERRIDE}" --env-file "${COMPOSE_ENV}" --profile 'build' build +``` + ## Start ``` diff --git a/docker-compose/{{ cookiecutter.__project_slug }}/README.md b/docker-compose/{{ cookiecutter.__project_slug }}/README.md index 6ed0ab9..29fde24 100644 --- a/docker-compose/{{ cookiecutter.__project_slug }}/README.md +++ b/docker-compose/{{ cookiecutter.__project_slug }}/README.md @@ -18,6 +18,13 @@ export COMPOSE_OVERRIDE="${COMPOSE_DIR%/}"'/docker-compose.override.yml'{% endif export COMPOSE_ENV= ``` +## Context + +On your deployment machine create the necessary Docker context to connect to and control the Docker daemon on whatever target host you'll be using, for example: +``` +docker context create fully.qualified.domain.name --docker 'host=ssh://root@fully.qualified.domain.name' +``` + {%- if cookiecutter.build == "yes" %} ## Build @@ -27,13 +34,6 @@ docker compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --fi ``` {%- endif %} -## Context - -On your deployment machine create the necessary Docker context to connect to and control the Docker daemon on whatever target host you'll be using, for example: -``` -docker context create fully.qualified.domain.name --docker 'host=ssh://root@fully.qualified.domain.name' -``` - ## Start ```