docs(docker-compose): Handle remote deployment via --context
This commit is contained in:
		| @@ -17,10 +17,17 @@ export COMPOSE_FILE="${COMPOSE_DIR}"'/docker-compose.yml' | ||||
| export COMPOSE_ENV=<add accordingly> | ||||
| ``` | ||||
|  | ||||
| ## 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 | ||||
|  | ||||
| ``` | ||||
| docker compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --env-file "${COMPOSE_ENV}" --profile 'full' up --detach | ||||
| docker --context 'fully.qualified.domain.name' compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --env-file "${COMPOSE_ENV}" --profile 'full' up --detach | ||||
| ``` | ||||
|  | ||||
| # Initial setup | ||||
|   | ||||
		Reference in New Issue
	
	Block a user