mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Example starting Scope probe with Docker Compose.
This commit is contained in:
41
README.md
41
README.md
@@ -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:weave-users@weave.works">weave-users@weave.works</a>
|
||||
- <a href="https://github.com/weaveworks/scope/issues/new">file an issue</a>
|
||||
|
||||
@@ -169,6 +169,45 @@ 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/).
|
||||
|
||||
### 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"
|
||||
- "MY_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"
|
||||
- "MY_SCOPE_SERVICE_TOKEN"
|
||||
|
||||
## <a name="using-weave-scope-with-kubernetes"></a>Using Weave Scope with Kubernetes
|
||||
|
||||
|
||||
14
examples/docker/docker-compose-v1.yml
Normal file
14
examples/docker/docker-compose-v1.yml
Normal file
@@ -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"
|
||||
- "MY_SCOPE_SERVICE_TOKEN"
|
||||
16
examples/docker/docker-compose-v2.yml
Normal file
16
examples/docker/docker-compose-v2.yml
Normal file
@@ -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"
|
||||
- "MY_SCOPE_SERVICE_TOKEN"
|
||||
Reference in New Issue
Block a user