-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1146 from pidster/master
Provides Docker Compose examples for launching the Scope probe with the Scope Cloud Service
- Loading branch information
Showing
3 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ boot2docker, replace localhost with the output of `boot2docker ip`.) | |
|
||
If you have any questions about, feedback for or problem with Scope we invite | ||
you to: | ||
- <a href="https://weave-scope-slack.herokuapp.com">join our public slack channel</a> | ||
- <a href="https://weave-scope-slack.herokuapp.com">join our public slack channel</a> | ||
- send an email to <a href="mailto:[email protected]">[email protected]</a> | ||
- <a href="https://github.com/weaveworks/scope/issues/new">file an issue</a> | ||
|
||
|
@@ -169,6 +169,47 @@ 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 | ||
|
||
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: | ||
|
||
version: '2' | ||
services: | ||
probe: | ||
image: weaveworks/scope:0.13.1 | ||
network_mode: "host" | ||
pid: "host" | ||
privileged: true | ||
labels: | ||
- "works.weave.role=system" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:rw" | ||
command: | ||
- "--probe.docker" | ||
- "true" | ||
- "--service-token" | ||
- "${SCOPE_SERVICE_TOKEN}" | ||
|
||
### Docker Compose format version 1: | ||
|
||
probe: | ||
image: weaveworks/scope:0.13.1 | ||
net: "host" | ||
pid: "host" | ||
privileged: true | ||
labels: | ||
- "works.weave.role=system" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:rw" | ||
command: | ||
- "--probe.docker" | ||
- "true" | ||
- "--service-token" | ||
- "${SCOPE_SERVICE_TOKEN}" | ||
|
||
## <a name="using-weave-scope-with-kubernetes"></a>Using Weave Scope with Kubernetes | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
probe: | ||
image: weaveworks/scope:0.13.1 | ||
net: "host" | ||
pid: "host" | ||
privileged: true | ||
labels: | ||
- "works.weave.role=system" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:rw" | ||
command: | ||
- "--probe.docker" | ||
- "true" | ||
- "--service-token" | ||
- "${SCOPE_SERVICE_TOKEN}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '2' | ||
services: | ||
probe: | ||
image: weaveworks/scope:0.13.1 | ||
network_mode: "host" | ||
pid: "host" | ||
privileged: true | ||
labels: | ||
- "works.weave.role=system" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:rw" | ||
command: | ||
- "--probe.docker" | ||
- "true" | ||
- "--service-token" | ||
- "${SCOPE_SERVICE_TOKEN}" |