model: “3.9”
companies:
prometheus:
container_name: prometheus
picture: promenade/prometheus:newest
restart: unless-stopped
tty: true
ports:
– 9090:9090
volumes:
– ${PWD}/prometheus/config/prometheus.yml:/and so forth/prometheus/prometheus.yml
– ${PWD}/prometheus/knowledge:/prometheus
command: “–config.file=/and so forth/prometheus/prometheus.yml –storage.tsdb.retention.time=1y –web.enable-admin-api”
depends_on:
– node-exporter
grafana:
container_name: grafana
picture: grafana/grafana
restart: unless-stopped
tty: true
depends_on:
– prometheus
ports:
– 3000:3000
volumes:
– ${PWD}/grafana/runtime-data:/var/lib/grafana
– ${PWD}/grafana/datasources/datasource.yml:/and so forth/grafana/provisioning/datasources/datasource.yml
surroundings:
– GF_SERVER_ROOT_URL=https://localhost
– GF_SECURITY_ADMIN_USER=foo
– GF_SECURITY_ADMIN_PASSWORD=bar
– GF_USERS_ALLOW_SIGN_UP=false
node-exporter:
container_name: node-exporter
picture: quay.io/prometheus/node-exporter:newest
restart: unless-stopped
tty: true
ports:
– 9100:9100