Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (37 sloc) 1.23 KB
version: "3"
services:
monitor:
image: dockerflow/docker-flow-monitor:${TAG:-latest}
environment:
- LISTENER_ADDRESS=swarm-listener
- GLOBAL_SCRAPE_INTERVAL=10s
- ARG_ALERTMANAGER_URL=http://alert-manager:9093
- DF_SCRAPE_TARGET_LABELS=env,metricType
- DF_NODE_TARGET_LABELS=aws_region,role
- DF_GET_NODES_URL=http://swarm-listener:8080/v1/docker-flow-swarm-listener/get-nodes
networks:
- monitor
ports:
- 9090:9090
alert-manager:
image: vfarcic/alert-manager:slack
networks:
- monitor
swarm-listener:
image: vfarcic/docker-flow-swarm-listener
networks:
- monitor
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DF_NOTIFY_CREATE_SERVICE_URL=http://monitor:8080/v1/docker-flow-monitor/reconfigure
- DF_NOTIFY_REMOVE_SERVICE_URL=http://monitor:8080/v1/docker-flow-monitor/remove
- DF_NOTIFY_CREATE_NODE_URL=http://monitor:8080/v1/docker-flow-monitor/node/reconfigure
- DF_NOTIFY_REMOVE_NODE_URL=http://monitor:8080/v1/docker-flow-monitor/node/remove
- DF_INCLUDE_NODE_IP_INFO=true
deploy:
placement:
constraints: [node.role == manager]
networks:
monitor:
external: true
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.