Skip to content

Instantly share code, notes, and snippets.

@hasnat
Created June 17, 2019 11:57
Show Gist options
  • Save hasnat/0cace9a0138cf7ed38e4950aa2b383e1 to your computer and use it in GitHub Desktop.
Save hasnat/0cace9a0138cf7ed38e4950aa2b383e1 to your computer and use it in GitHub Desktop.
version: '2.4'
services:
dns-for-weave:
container_name: dns-for-weave
image: cytopia/bind
environment:
EXTRA_HOSTS: "weavescope.yourcompany.com=000.000.000.000"
DOCKER_LOGS: "1"
weavescope-client:
container_name: weavescope
image: weaveworks/scope
network_mode: "host"
pid: "host"
privileged: true
restart: unless-stopped
# ports:
# - "${HOST_weave_probe_ip}:4040:4040" #probe
# - "${HOST_weave_probe_ip}:4041:4041" #app
environment:
CHECKPOINT_DISABLE: "true"
labels:
- "works.weave.role=system"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
- "/proc:/hostproc:ro"
# - "$PWD:/var/run/scope/plugins"
command:
- "--probe.docker=true"
- "--weave=false"
- "--probe-only"
- "--probe.log.level=error"
- "--probe.proc.root=/hostproc"
- "--probe.omit.cmd-args"
- "--probe.omit.env-vars"
- "--probe.processes=false"
- "--probe.proc.spy=false"
# - "--probe.spy.interval=10s"
# - "--probe.publish.interval=10s"
# - "--probe.http.listen=0.0.0.0:4040"
# - "--app.http.address=${HOST_weave_app_ip}:4041"
- "weavescope.yourcompany.com:80"
weavescope-server:
container_name: weavescope
image: weaveworks/scope:1.10.2
#network_mode: "host"
pid: "host"
privileged: true
restart: unless-stopped
# ports:
# - "${HOST_weave_probe_ip}:4040:4040" #probe
# - "${HOST_weave_probe_ip}:4041:4041" #app
environment:
CHECKPOINT_DISABLE: "true"
labels:
- "works.weave.role=system"
extra_hosts:
- "weavescope.yourcompany.com:000.000.000.000"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
# - "/proc:/hostproc:ro"
# - "$PWD:/var/run/scope/plugins"
command:
- "--probe.docker=true"
- "--weave=false"
- "--probe.resolver=dns-for-weave:53"
#- "--probe.kubernetes=false"
#- "--probe.kubernetes.role=cluster"
- "--probe-only"
- "--probe.log.level=debug"
# - "--probe.proc.root=/hostproc"
- "--probe.omit.cmd-args"
- "--probe.omit.env-vars"
- "--probe.processes=false"
- "--probe.proc.spy=false"
#- "--probe.spy.interval=10s"
#- "--probe.publish.interval=10s"
#- "--probe.http.listen=0.0.0.0:4040"
#- "--app.http.address=${HOST_weave_app_ip}:4041"
- "https://weavescope.yourcompany.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment