docker swarm
This commit is contained in:
19
docker-swarm/monitor/README
Normal file
19
docker-swarm/monitor/README
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
env $(cat ./env_prod | xargs) envsubst < ./docker-stack.yml | docker stack deploy --compose-file - monitor
|
||||
|
||||
docker stack deploy --compose-file docker-compose.yml monitor --with-registry-auth
|
||||
|
||||
|
||||
docker run \
|
||||
-p 9090:9090 \
|
||||
-v /opt/support/prometheus.yml:/etc/prometheus/prometheus.yml \
|
||||
prom/prometheus:v2.52.0
|
||||
|
||||
docker service create --name cadvisor -l prometheus-job=cadvisor \
|
||||
--mode=global --publish target=8080,mode=host \
|
||||
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock,ro \
|
||||
--mount type=bind,src=/,dst=/rootfs,ro \
|
||||
--mount type=bind,src=/var/run,dst=/var/run \
|
||||
--mount type=bind,src=/sys,dst=/sys,ro \
|
||||
--mount type=bind,src=/var/lib/docker,dst=/var/lib/docker,ro \
|
||||
spcodes/cadvisor:v0.49.1 -docker_only
|
Reference in New Issue
Block a user