prometheus-stage: image: prom/prometheus volumes: - /home/ubuntu/prometheus/prometheus/:/etc/prometheus/ - /home/ubuntu/prometheusdata:/prometheus command: '-config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -alertmanager.url=http://alertmanager-stage:9093' # - '-storage.local.path=/prometheus' # - '-alertmanager.url=http://alertmanager-stage:9093' expose: - '9090' links: - cadvisor-stage:cadvisor-stage - alertmanager-stage:alertmanager-stage # depends_on: # - cadvisor-stage tags: - stage2 node-exporter-stage: image: prom/node-exporter volumes: - /proc:/host/proc - /sys:/host/sys - /:/rootfs command: '-collector.procfs=/host/proc -collector.sysfs=/host/sysfs -collector.filesystem.ignored-mount-points="^/(sys|proc|dev|host|etc)($$|/)"' # - '-collector.sysfs=/host/sysfs' # - '-collector.filesystem.ignored-mount-points="^/(sys|proc|dev|host|etc)($$|/)"' expose: - '9100' tags: - stage2 alertmanager-stage: image: prom/alertmanager expose: - '9093' volumes: - /home/ubuntu/prometheus/alertmanager/:/etc/alertmanager/ command: '-config.file=/etc/alertmanager/config.yml -storage.path=/home/ubuntu/prometheus/alertmanager/' # - '-storage.path=/home/ubuntu/prometheus/alertmanager/' tags: - stage2 cadvisor-stage: image: google/cadvisor volumes: - /:/rootfs:ro - /var/run:/var/run:rw - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro expose: - '8080' tags: - stage2 grafana-stage: image: grafana/grafana # depends_on: # - prometheus-stage expose: - '3000' volumes: - /home/ubuntu/grafanadata:/var/lib/grafana environment: - GF_SECURITY_ADMIN_PASSWORD=foobar - GF_USERS_ALLOW_SIGN_UP=false - VIRTUAL_HOST=grafanastage.southwales.ac.uk - VIRTUAL_PORT=80 tags: - stage2