Improvements to the compose file examples, using variables

This commit is contained in:
pidster
2016-03-08 17:06:13 +00:00
parent 911eac2e26
commit 7e51862b32
3 changed files with 7 additions and 5 deletions

View File

@@ -171,7 +171,9 @@ sudo scope launch --service-token=<token>
## <a name="launching-weave-scope-and-compose-in-cloud-service-mode"></a>Launching Weave Scope and Docker Compose in Cloud Service Mode
In both blocks below, replace MY_SCOPE_SERVICE_TOKEN with the token you find when you [log in to the Scope service](https://scope.weave.works/).
The SCOPE_SERVICE_TOKEN is found when you [log in to the Scope service](https://scope.weave.works/) - launch Docker Compose with one of the two fragments below and the value of the token set as an environment variable:
SCOPE_SERVICE_TOKEN=abcdef_my_token docker-compose up -d
### Docker Compose format version 2:
@@ -190,7 +192,7 @@ In both blocks below, replace MY_SCOPE_SERVICE_TOKEN with the token you find whe
- "--probe.docker"
- "true"
- "--service-token"
- "MY_SCOPE_SERVICE_TOKEN"
- "${SCOPE_SERVICE_TOKEN}"
### Docker Compose format version 1:
@@ -207,7 +209,7 @@ In both blocks below, replace MY_SCOPE_SERVICE_TOKEN with the token you find whe
- "--probe.docker"
- "true"
- "--service-token"
- "MY_SCOPE_SERVICE_TOKEN"
- "${SCOPE_SERVICE_TOKEN}"
## <a name="using-weave-scope-with-kubernetes"></a>Using Weave Scope with Kubernetes

View File

@@ -11,4 +11,4 @@ probe:
- "--probe.docker"
- "true"
- "--service-token"
- "MY_SCOPE_SERVICE_TOKEN"
- "${SCOPE_SERVICE_TOKEN}"

View File

@@ -13,4 +13,4 @@ services:
- "--probe.docker"
- "true"
- "--service-token"
- "MY_SCOPE_SERVICE_TOKEN"
- "${SCOPE_SERVICE_TOKEN}"