app: image: beorn7/syseng-challenge ports: - 8080:8080 exporter: build: ./ command: -endpoint=http://app:8080/stats -listen :8081 --timeout 200 links: - app ports: - 8081:8081 # Just for full stack testing app_2: image: beorn7/syseng-challenge exporter_2: build: ./ command: -endpoint=http://app:8080/stats -listen :8081 --timeout 200 --environment=production links: - app_2:app app_3: image: beorn7/syseng-challenge exporter_3: build: ./ command: -endpoint=http://app:8080/stats -listen :8081 --timeout 200 --environment=production links: - app_3:app app_4: image: beorn7/syseng-challenge exporter_4: build: ./ command: -endpoint=http://app:8080/stats -listen :8081 --timeout 200 --environment=development links: - app_4:app prometheus: # There is an issue with docker links and resolving entries in /etc/hosts, open PR: https://github.com/prometheus/prometheus/pull/2502 # image: prom/prometheus:latest # use own build docker image...: image: prom links: - exporter - exporter_2 - exporter_3 - exporter_4 volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml ports: - 8082:9090 grafana: image: grafana/grafana:latest command: -config.file /etc/prometheus.yml links: - prometheus ports: - 8083:3000