Init
This commit is contained in:
1 parent
57ef4ca911
commit
af5a37936d
4 files changed
+128
No files matched your search
@@ -0,0 +1,75 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
volumes:
|
||||
- ./CONFIGS/PROMETHEUS/:/etc/prometheus
|
||||
- ./PROMETHEUS/:/prometheus
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||
- '--storage.tsdb.path=/prometheus'
|
||||
- '--storage.tsdb.retention.time=30d'
|
||||
networks:
|
||||
docker-net:
|
||||
ipv4_address: 172.30.0.20
|
||||
ports:
|
||||
- "127.0.0.1:9090:9090"
|
||||
restart: always
|
||||
|
||||
node-exporter:
|
||||
image: prom/node-exporter:latest
|
||||
container_name: node_exporter
|
||||
volumes:
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/rootfs:ro
|
||||
command:
|
||||
- '--path.procfs=/host/proc'
|
||||
- '--path.sysfs=/host/sys'
|
||||
- '--path.rootfs=/rootfs'
|
||||
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
|
||||
networks:
|
||||
docker-net:
|
||||
ipv4_address: 172.30.0.21
|
||||
ports:
|
||||
- "8008:9100"
|
||||
restart: always
|
||||
|
||||
cadvisor:
|
||||
image: gcr.io/cadvisor/cadvisor:latest
|
||||
container_name: cadvisor
|
||||
volumes:
|
||||
- /:/rootfs:ro
|
||||
- /var/run:/var/run:ro
|
||||
- /sys:/sys:ro
|
||||
- /var/lib/docker/:/var/lib/docker:ro
|
||||
- /dev/disk/:/dev/disk:ro
|
||||
networks:
|
||||
docker-net:
|
||||
ipv4_address: 172.30.0.22
|
||||
ports:
|
||||
- "8009:8080"
|
||||
restart: always
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=bruno
|
||||
- GF_SECURITY_ADMIN_PASSWORD=svHBaMujp0c7ZE5065
|
||||
- GF_USERS_ALLOW_SIGN_UP=false
|
||||
volumes:
|
||||
- ./GRAFANA/data:/var/lib/grafana
|
||||
ports:
|
||||
- "8007:3000"
|
||||
networks:
|
||||
docker-net:
|
||||
ipv4_address: 172.30.0.23
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
docker-net:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.30.0.0/16
|
||||
Reference in new issue
Block a user